-
Notifications
You must be signed in to change notification settings - Fork 24.9k
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
Add filter option to term suggester #2842
Comments
What exactly is meant with that?
|
Similar but not a duplicate of #3482. |
@julianhille This means that a term will only be suggested, if the documents that have this term also match with the provided filter. At least one of the term's document need to be in the filter. This can best be seen as a kind of post filtering of terms. A |
@martijnvg then this is exactly what i need. Also for the autocomplete. I was unsure about the type of filter (pre, post) because both is named filter or known in the filter context. Sorry if that was clear to anyone else. |
i need this as well. i think the suggestions should be responsive to your overall query including filters, etc. i'm not sure where it would make sense to suggest terms outside of these parameters. for example, if i have a movies index and i am asking for children's movies (rated G), and i search on 'frozen', i don't want the suggester to suggest some rated R movie that also happens to contain the word 'frozen'. |
apologies, pius sent me to this link. i am actually already using a phrase suggester but it's not adhering to my filters. perhaps there's something wrong with the structure of my query. |
@bigerock I think it is not working in your case because NEST does not yet support this (elastic/elasticsearch-net#824). Will chat more in our existing ZD ticket. |
Add optional
filter
option to term suggester, that only allows suggest options that match with the filter.The text was updated successfully, but these errors were encountered: