Skip to content

feat: add a prop that ensures that the sorting is reset to _score when the query changes

Walter requested to merge feature/sort-reset-to-relevance into master

Right now if you have activated for example the "date_desc" filter and you would enter a query and search, then you want the sorting to reset to the "_score" relevance option.

I added a flag to the component to allow a project to turn this feature on.

Open questions:

  • Do we want this logic in the SortBy component? Or do we maybe want to move it to the SearchkitWrapper?

Merge request reports

Loading