api-clients-automation
api-clients-automation copied to clipboard
JavaScript: set `type: facet` parameter earlier in the request
Describe the problem
From https://github.com/algolia/api-clients-automation/pull/695
This is based on an assumption, but if I'd implement this endpoint in the search engine, I would shortcut to the facet search as soon as I see type: facet, so this has a chance to be imperceptually faster
by @Haroenv
Describe the solution
We already have some manipulation to support the legacy signature of the search
method, so we can set the type: 'facet'
parameter earlier in the query