I know that sorting is based on relevance if no other sorting is defined - and that's how I would like to have it.
However, when my search is facet-only, the score of each result is 1 and I'm not quite sure how the results get sorted. Would it be possible to specify a secondary sorting option, using the search-ui packages? I found this topic but I can't work out how I can set that on the client side.
Hi @Carlos_D , thanks for your reply!
My issue is that I would like to have relevance sorting (which is the default) when a term is being used but alphabetical when only facet filters are being used. I don't want to give the users an option to select the sort field.
Is there a way to achieve this? The sort component you're referring to is a user control, but I would like to set this as default behaviour.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.