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

Better Facet Query Support #1251

Open
joemcelroy opened this issue Apr 14, 2023 · 0 comments
Open

Better Facet Query Support #1251

joemcelroy opened this issue Apr 14, 2023 · 0 comments

Comments

@joemcelroy
Copy link
Member

Currently in v4.5, you are able to specify a custom facet query to override the default terms aggregation.

facet_attributes: [
{ 
  attribute: "type",
  field: "type.keyword",
  type: "string"
  facetQuery: (field, size, query) => ({ significant_terms: { field, size } })
}
]

This doesn't work well when the aggregation doesn't use the term bucket interface.

What we need is to add another function that transforms the elasticsearch agg response into the shape that Searchkit uses to present.

This was referenced Apr 14, 2023
@joemcelroy joemcelroy added this to the v4.6.0 milestone Apr 14, 2023
@joemcelroy joemcelroy removed this from the v4.6.0 milestone Jan 28, 2024
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

No branches or pull requests

1 participant