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
{{ message }}
This repository has been archived by the owner on May 13, 2021. It is now read-only.
Loving Meilisearch so far, guys... Only think holding me back from integrating it into our app is a lack of clarity on how to access the extra metadata like facetsDistribution.
I can currently access facetsDistribution by using raw() when executing the query, so my temporary workaround is calling the raw search function, then the traditional paginate query right afterwards. Is there a way to integrate the facetsDistribution response into the paginate response so I don't have to do this hacky, resource-intensive workaround?
Thanks!
The text was updated successfully, but these errors were encountered:
Thanks for trying MeiliSearch 😄
If I'm correct, we don't provide any possibility like this one for the moment since we want to be totally compliant with the official Laravel/Scout package. See this issue for more details #111.
However, to avoid calling twice the server, you can perform your pagination in a custom search, at the same time as the facetsDistribution parameter:
offset and limit are what the paginate() method uses.
The paginate() method also uses the getTotalCount() method to know the total number of hits, which uses the nbHits returned in the raw search. See
Loving Meilisearch so far, guys... Only think holding me back from integrating it into our app is a lack of clarity on how to access the extra metadata like facetsDistribution.
I can currently access facetsDistribution by using raw() when executing the query, so my temporary workaround is calling the raw search function, then the traditional paginate query right afterwards. Is there a way to integrate the facetsDistribution response into the paginate response so I don't have to do this hacky, resource-intensive workaround?
Thanks!
The text was updated successfully, but these errors were encountered: