You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there! Thanks for creating and maintaining this :)
I was trying to build an export feature for my search UI, where users should be able to download all the results that they are looking at (+ the following pages included). I thought the way I could achieve this, is to extract the current Query from somewhere, and then do that search manually. That way, I can handle a larger amount of responses.
But how do I access this search query?
I can see that instantMeiliSearch creates a meilisearch client instance and calls .search at some point.
I want to call that .search manually, using a Query built from the current UI state. I'm not quite sure how to do this. I could just fetch the /search endpoint, but I still want to use my currently selected facets / values.
Some API suggestions:
instantMeiliSearch returns a currentQuery object, which represents the JSON body sent to the server for a search.
Did you find this out? I am also trying to manually use .search( ), but I am unable to get facets to work. This is how I used the search, which does work.
Hi there! Thanks for creating and maintaining this :)
I was trying to build an
export
feature for my search UI, where users should be able to download all the results that they are looking at (+ the following pages included). I thought the way I could achieve this, is to extract the current Query from somewhere, and then do that search manually. That way, I can handle a larger amount of responses.But how do I access this search query?
I can see that
instantMeiliSearch
creates ameilisearch
client instance and calls.search
at some point.I want to call that
.search
manually, using a Query built from the current UI state. I'm not quite sure how to do this. I could justfetch
the/search
endpoint, but I still want to use my currently selected facets / values.Some API suggestions:
instantMeiliSearch
returns acurrentQuery
object, which represents the JSON body sent to the server for a search.useCurrentQuery
hook that does something similar?I'm using:
The text was updated successfully, but these errors were encountered: