Hi all - I am using the React Search UI with Elastic Cloud. I am looking for a way to set the search results order dynamically based on if the search box is populated. The logic is:
Always default to a sort of date desc if the search box is empty (on initial page load, even if facet filters are selected, etc)
Once the search box is populated the sorting should switch to _score desc
If the search box is cleared sorting should go back to date desc
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.