api-clients-automation icon indicating copy to clipboard operation
api-clients-automation copied to clipboard

JavaScript: set `type: facet` parameter earlier in the request

Open shortcuts opened this issue 2 years ago • 0 comments

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

shortcuts avatar Jun 15 '22 12:06 shortcuts