Answers: Advanced Module 5 Module Assessment

Hi there,

I need your help at step 8.

Time to add the Search Configuration sorting to override how the Algorithm sorts by default. Navigate to Answers > Experiences > Verticals. On the algorithm side, we want to sort the events first by relevance and then, all else being equal, by start date/time .

I managed to set ‘relevance’ for events vertical (screenshot) but I dont seem to seen the option of start date/time*- screenshot
Type = field results empty option for Field.

Am I missing something?
Thank you!

Kotoko

Hi @Kotoko_Igarashi,

you want to make sure to add field Start ( time.start ) as a Sortable field in the Searchable Fields section for the Events vertical. Only when you have done so, will it show up in the Select a field dropdown in section Default Sort Order.

Hope this helps you get back on track.

Good luck,
Stefan

Hi Stefan,

Thanks for checking!
but I am still in the black hole.

In this section here?


Can you tell me how it should be updated?
(i tired to replace ‘RELEVANCE’ to ‘time.start’ but got an error…)

Also I read

events first by relevance and then, all else being equal, by start date/time .

events vertical = relevance
Other vertical (jobs etc…) = start date/time

Is adding field Start ( time.start ) as a Sortable field in the Searchable Fields section for the Events vertical still correct?

Thank you!
Kotoko

Hi @Kotoko_Igarashi ,

sorry for not making myself clear enough.
The first screenshot you have provided with your initial post seems to indicate that you did not yet add the start time field as a searchable, respectively sortable field to the events vertical. Please see step 10 of the challenge instructions. You can perform this step via the UI.
Please see this here screenshot


Once you have added the field, it will appear as an option in section Default Sort Order:

You can then set the two sorting rules:

These additions will be reflected in the search configuration JSON file like this:

“events”: {
“entityTypes”: [
“event”
],
“name”: “Events”,
“searchableFields”: {
“builtin.entityType”: {
“nlpFilter”: true
},
“name”: {
“textSearch”: true
},
“time.start”: {
“sortable”: true
}
},
“sortBys”: [
{
“type”: “RELEVANCE”
},
{
“direction”: “ASC”,
“field”: “time.start”,
“type”: “FIELD”
}
],
“source”: “KNOWLEDGE_MANAGER”
},

Hope this helps.

Kind regards,
Stefan

Thank you so much Stefan!!!

1 Like