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

How to get facets through GraphQL Search API ? #50

Closed
naourass opened this issue Dec 9, 2021 · 1 comment
Closed

How to get facets through GraphQL Search API ? #50

naourass opened this issue Dec 9, 2021 · 1 comment

Comments

@naourass
Copy link

naourass commented Dec 9, 2021

How does facets work? I'm using Drupal 9 and elasticsearch with elasticsearch-connector module and everything works fine except facets. They are always empty in the results. Should I install a facet module for this? Should I create a datasource for facets? How can I get facets to work with Drupal 9 and elasticsearch-connector module ? Thanks.

@naourass
Copy link
Author

It's a bug in elasticsearch connector module. In SearchApiElasticsearchBackend.php parseFacets() function, the operator should be equal "=" and not "and".

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