Hi, Can we set a limit by facets used in the `quer...
# community-help
g
Hi, Can we set a limit by facets used in the
queryBy
clause? Ex: queryBy: 'city,canton' Can I say that for city I want max 2 results, and for canton something else ?
k
Can't limit that way
What's the harm in fetching more than 2 results? Performance concerns?
g
I'm using the autocomplete and from a same collection, I associate one template option by facet. I have some facets where it is not relavant to display more than one for instance. What happen is, I have some facets that might "fill" the max hits per page whereas I would like it would be other facets.
k
Got it, I think the other option here is to make multiple queries using multi_search endpoint, targeting each field independently.
g
Ok I will see if I can not find another workound, thanks