Simply put, is there a way to do refine(searchQuery) without using a search box? So I can pass any query and generate the hits without a SearchBox widget?
Here’s extra details if you don’t understand:
I’m trying to figure out a way to implement a global search on the nav bar on my react website. So originally, I had the searchbox just in the search page and that worked perfectly. It also included URLs so any search would result in a URL being generated and being able to read from the URL and being able to share it.
Now, I’m shifting the search bar to the Nav bar, so that a user can search from anywhere in the app(similar to Amazon). So if a user is on a non search page such as their dashboard, the search is still available in the nav bar at the top of the page. The user simply types in a query then it navigates to the search page with the query. Is there a way to implement this? I was able to generate a URL exactly like how a readable one would be generated and pass that, but this will not generate the hits.