I am using the reference UI react project to display the search results and facets.
But here the facets are being displayed in either descending order or in ascending order.
But I need to display the results in a specific order.
This is how it is currently being displayed ( Ascending ) Status:
Active
Closed
Pending
Warning
I need this data in custom order like Status:
Warning
Active
Pending
Closed
Thanks @Gustavo_Llermaly, this works for me. Just one more small help. How we can mark any field on loading the page ( as default checked ). Previously, I was using the initialState in which I have set the default checked status as Active and Warning.
After adding this logic the data output is correct but the values on Facet are not checked.
Thats right, using searchQuery: {filters} property will not affect the app state. Not sure what's the best way to do it but you should put the filter actions on your app start
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.