Skip to content
This repository was archived by the owner on Jul 11, 2023. It is now read-only.

feat(searchForFacetValues): fall back to client.search if it's present #906

Merged
merged 3 commits into from
Jun 17, 2022

Conversation

Haroenv
Copy link
Contributor

@Haroenv Haroenv commented May 16, 2022

client.search with type: 'facet', facet, params: { facetQuery } can be used in v4 onwards as an alternative to client.searchForFacetValues, meaning the client.searchForFacetValues method can be removed in a future major version.

Unfortunately the JS client v3 doesn't support type "facet" for multi-index search because it manually decides which keys are used in the post object: https://github.com/algolia/algoliasearch-client-javascript/blob/v3/src/AlgoliaSearchCore.js#L638-L654

FX-1432

client.search with `type: 'facet', facet, params: { facetQuery }` can be used in v4 onwards as an alternative to client.searchForFacetValues, meaning the client.searchForFacetValues method can be removed in a future major version.

Unfortunately the JS client v3 doesn't support type "facet" for multi-index search because it manually decides which keys are used in the post object: https://github.com/algolia/algoliasearch-client-javascript/blob/v3/src/AlgoliaSearchCore.js#L638-L654
@codesandbox-ci
Copy link

codesandbox-ci bot commented May 16, 2022

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 423173a:

Sandbox Source
javascript-helper-app Configuration
InstantSearch.js Configuration

@Haroenv Haroenv requested a review from dhayab May 17, 2022 12:03
@Haroenv Haroenv marked this pull request as draft May 24, 2022 11:33
@Haroenv

This comment was marked as outdated.

@Haroenv Haroenv marked this pull request as ready for review June 15, 2022 15:51
@Haroenv Haroenv requested a review from dhayab June 15, 2022 15:51
@Haroenv Haroenv merged commit d9ebb01 into develop Jun 17, 2022
@Haroenv Haroenv deleted the feat/sffv-search-method branch June 17, 2022 13:28
Haroenv added a commit that referenced this pull request Jun 20, 2022
 * feat(searchForFacetValues): fall back to client.search if it's present (#906) d9ebb01
 * fix(requests): send a sorted object of parameters (#911) 832507f
Haroenv added a commit to algolia/instantsearch that referenced this pull request Jun 20, 2022
Haroenv added a commit to algolia/instantsearch that referenced this pull request Jun 20, 2022
dhayab added a commit to algolia/instantsearch that referenced this pull request Jul 10, 2023
algolia/algoliasearch-helper-js#906)

client.search with `type: 'facet', facet, params: { facetQuery }` can be used in v4 onwards as an alternative to client.searchForFacetValues, meaning the client.searchForFacetValues method can be removed in a future major version.

Unfortunately the JS client v3 doesn't support type "facet" for multi-index search because it manually decides which keys are used in the post object: https://github.com/algolia/algoliasearch-client-javascript/blob/v3/src/AlgoliaSearchCore.js#L638-L654

Co-authored-by: Dhaya <154633+dhayab@users.noreply.github.com>
dhayab pushed a commit to algolia/instantsearch that referenced this pull request Jul 10, 2023
 * feat(searchForFacetValues): fall back to client.search if it's present (algolia/algoliasearch-helper-js#906) algolia/algoliasearch-helper-js@297f778
 * fix(requests): send a sorted object of parameters (algolia/algoliasearch-helper-js#911) algolia/algoliasearch-helper-js@3b3dc97
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants