-
Notifications
You must be signed in to change notification settings - Fork 24.6k
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
Bug: When using graph synonym and stop token filter together #28838
Comments
cc @elastic/es-search-aggs |
@romseygeek Could you take a look at this? |
This is a known issue in Lucene and we're currently discussing different options for the fix: |
I will be closing this issue, as the issue in on the Lucene level (it has been opened and currently in progress), and there is nothing we ca do on the Elastic level. |
Hey @jimczi - just wanted to follow up on this. I'm getting a similar issue. The exact bug above (where only 2 out of 3 matches are found) no longer occurs (I'm using ES 7.6.0) - good news. And if you switch the order of the stopword and synonym_graph filters, you still get the
If in the example above, you put synonym graph filter AFTER the stopwords filter AND manually remove stopwords from the synonyms (i.e. now Thanks in advance! (PS: the reason I need to put synonym_graph AFTER stopwords is that the stopwords are case sensitive whereas the synonyms are not case sensitive) If helpful, here are the requests I'm running:
|
I am reopening this issue since it's a long standing bug and it's not resolved in Lucene. |
Pinging @elastic/es-search-relevance (Team:Search Relevance) |
Elasticsearch 6.2.0
Description:
When using stop and graph synonym filters together, the document that should match doesn't match and highlight doesn't work as it should.
Step to reproduce:
Mapping
Indexing 3 documents
Search
Search Result:
Problems:
Bug 1. Document { "title":"world of war"} does not match. But it should match.
Bug 2. Highlighter does not highlight "world of war".
I have also tried to put synonym_graph_tokenfilter after english_stopwords_tokenfilter filter but I get:
The text was updated successfully, but these errors were encountered: