Within each vertical, you will determine which fields can be searched on the Search backend by configuring Searchable Fields. Searchable Fields specify which Content fields are indexed by the Search algorithm in each vertical and how. This determines how results are returned to the user. To learn more about searchable fields visit the Searchable and Display Fields unit.
To add Searchable Fields in the UI:
- Click Search in the navigation bar and click on the desired Search experience. You'll land on the Verticals screen.
- Select the vertical you want to add searchable fields to.
- On the Search Algorithms or Filters tab, find the relevant searchable field type you want to add.
- Click + Add / Update Fields. A dialog box appears.
- Select the checkbox next to the fields you would like to add as searchable fields and uncheck any fields you want to remove. Then click Update.
- Click Save.
To add Searchable Fields using the JSON Editor:
- Click Search in the navigation bar and click on the desired Search experience.
- Click Edit as JSON in the navigation bar to open your Search Configuration file.
- Specify the API Name of the field, along with the Searchable Field options you’d like to set it as.
- To find the API name of a field, follow the steps in the View Field API Name article. To find the property names of each searchable field type, check out the Search Config - Verticals reference doc.
It should look something like this:
"community_stories": {
"entityTypes": [
"ce_communityStory"
],
"name": "Community Stories",
"searchableFields": {
"builtin.entityType": {
"nlpFilter": true,
"textSearch": false
},
"c_theme": {
"facet": true,
"nlpFilter": true
},
"name": {
"nlpFilter": false,
"phraseMatch": false,
"textSearch": true
}
},
Comments
0 comments
Article is closed for comments.