-
Notifications
You must be signed in to change notification settings - Fork 730
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
The Phrase suggester should support multiple direct_generators #1963
Comments
@sergiuionescu Interested to open a PR? 😇 |
Thanks! Test should always be run automatically. |
@ruflin they are not run anymore automatically for new contributors. |
Closing as #1964 was merged and fixed that. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The current Phrase suggester(https://github.com/ruflin/Elastica/blob/master/src/Suggest/Phrase.php#L12) only supports one generator. Subsequently calling \Elastica\Suggest\Phrase::addCandidateGenerator always overwrites the previous generator value.
According to https://www.elastic.co/guide/en/elasticsearch/reference/current/search-suggesters.html#_direct_generators multiple generators can be used. Ex:
At the moment the workaround we can use is:
Is it possible to update the Phrase suggester class to support a list of generators?
Thanks!
The text was updated successfully, but these errors were encountered: