Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(types): support facetQuery in MultipleQueriesQuery #1267

Merged
merged 2 commits into from
Apr 23, 2021

Conversation

shortcuts
Copy link
Member

@shortcuts shortcuts commented Apr 22, 2021

Description

Following #1263, this PR updates MultipleQueriesQuery to add the type for facetQuery when type: 'facet'

Usage

searchClient
  .search([
    {
      type: 'facet',
      indexName: 'instant_search',
      facet: 'categories',
      params: {
        facetQuery: 'a',
        maxFacetHits: 5,
      },
    },
  ])
  .then(({ results }) => {
    console.log(results);
  });

ts playground

@codesandbox-ci
Copy link

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 4e5375b:

Sandbox Source
javascript-client-app Configuration

@shortcuts shortcuts merged commit 84355a9 into master Apr 23, 2021
@shortcuts shortcuts deleted the feat/MultipleQueriesQuery-facetQuery branch April 23, 2021 06:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants