Tailwind Logo

Sitecore Search - Additional steps to get the Starter Kit working - Adding Attributes

Search

Published: 2023-08-18

The Starter Kit uses several attributes (Attribute) that are not included in the standard kit, so necessary items are added in Domain Settings.

Additional settings to launch the Starter Kit

Some additional configuration is required to get the Starter Kit working, and these instructions are included in the readme.md.

We will be putting together a blog post on this setup, with more screenshots, so we will review the procedure in three parts. This will be the first installment of "Domain Settings".

Adding Attributes

Attributes can be added to the page data retrieved by the crawler. To add more attributes, add "Attributes" in the "Domain Settings" section.

This time we want to add File Type as the first item. Click the + Attribute button in the upper right corner of the screen, and you will see the following screen.

searchattribute01.png

On the left side, you will see a tab labeled "Settings / Use for Features. First, for Settings, enter values for the following items.

Column

Value

Entity

Content

Display Name

File Type

Attribute Name

file_type

Placement

Standard

Data Type

String

Properties

Return in api response Available for rule & page hard filters Available for site context

When the above settings are complete, save and add attributes.

Then add the Parent Url.

Column

Value

Entity

Content

Display Name

Parent Url

Attribute Name

parent_url

Placement

Standard

Data Type

String

Properties

Return in api response

The File Type and Parent Url will be introduced a little later, but they will be used when handling PDF files.

Next, add a Last Modified field to be used as the last modified date.

Column

Value

Entity

Content

Display Name

Last Modified

Attribute Name

last_modified

Placement

Standard

Data Type

Timestamp

Properties

Return in api response Available for Quick Look ( in CEC )

Last Modified's Use for Features checks Search ranking and Sorting Options.

Column

Value

Entity

Content

Display Name

Title

Attribute Name

title

Placement

Standard

Data Type

string

Properties

Return in api response Available for Quick Look ( in CEC )

More on Use for Features in Title, but check Personalization, Sorting Options, Textual Relevance, and Suggestion Blocks.

searchattribute02.png

Finally, add Subtitle.

Column

Value

Entity

Content

Display Name

Subtitle

Attribute Name

subtitle

Placement

Standard

Data Type

String

Properties

Return in api response

For Use for Features, check the two items Personalize and Textual relevance. This completes the addition of attributes.

Summary

This time, we have completed the addition of the attribute items. In the next article, we will configure these attributes a little more in order to make them work with the Starter Kit.

Tags