We are using search ui library that allows to quickly implement search experience leveraging Elasticsearch.
We have used hashing in the url routing (which generate the url like this http://www.example.com/#/Search, it is to load search component) and we have also enabled the trackURLState in the config of searchUI, so, on the click of back/forward button of browser, searchUI can maintain the selection of refiners.
Problem is that when we enable the hashing in solution and try to select any of the refiner, we are facing below issue
You'd need to do something like this in order to use it:
import { SearchDriver } from "@elastic/search-ui";
const config = {
/* your config */
};
const driver = new SearchDriver(config);
driver.URLManager = YourCustomURLManager
...
<SearchProvider driver={driver}>
</SearchProvider>
That's the best I can do for you. Be cautious if you do that though, you're changing Search UI internals directly, which means updating Search UI versions could break your implementation. I've also never tried that before, so I have no idea how well it will work. It will also require looking at our source code, particularly the URLManager and SearchProvider.
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.