Answers: Advanced Module 5 Module Assessment Issue with Sorting

I’m failing due to one issue “Sort the Events vertical results by Relevance and Event Time in the config”
I’m quite confused by the instructions, especially the bolded bit:

  1. Next, update the sortBys object. You can copy and paste this object below and insert the values just like you did for the frontend (in fact they’re almost the same - only difference is that there’s no “label” property since this is a backend change!). As you know, the required properties vary based on the type of sort. When you specify type as “FIELD” you must specify the field’s API name and the direction, but other sorting options only require the TYPE. You want to do sort first based on RELEVANCE and then FIELD for event start time (time.start), and direction ASC.

This page didn’t help

In my Search config I am seeing a warning that says"In vertical Events, cannot sort by the field time.start because it is not marked as sortable"

Screenshot of my config

Any help would be appreciated. I’m sure I am missing something simple.

Hi @Andrai_Whitted

Thank you so much for the feedback and for flagging any confusion. We’re always looking to improve and make areas more clear!

We took a look at your account and it seems the sortbys are saving correctly. However, the error seems that to be that you have included Name field sorting in your backend Search configuration file for the algorithm. For this challenge, you’ll only want to have Name field in the on-page sorting.

Step 9 asks: “On the algorithm side, we want to sort the events first by relevance and then, all else being equal, by date.”

If you remove the sortable for the Name field only and the Name field section under sortBys, save your backend Search Configuration file, and submit, you should be all set!

Let us know if you have any other questions! Thanks again for reaching out and we’ll work to update these instructions.

Best,
Alyssa

Hi @ahubbard , if I remove the Name sorting, then when I try to save it gives me the error " * 55:21 verticals: In vertical Events, cannot sort by the field name because it is not marked as sortable" that’s why I made it sortable.

What else am I missing?

Hi Andrai,

Would you mind sending a screenshot of the error? I am not able to replicate - I have removed the Name sorting from your Backend Search Configuration file under SortBys and it saves correctly like so:

Let me know if you have any questions. You should be all set to submit.

Best,
Alyssa

Thanks @Alyssa_Hubbard, I hit submit and it has gone through. Maybe a glitch on my browser? I had a bunch of issues yesterday on the site. Thanks for your help