-
Notifications
You must be signed in to change notification settings - Fork 24.7k
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
Cannot create analyzer that has more than 2 synonym_graph filters #111507
Comments
Pinging @elastic/es-search-relevance (Team:Search Relevance) |
Hi @cipher450 : It's possible that chaining the synonym graph filters together caused some interaction that ended up in invalid synonyms. That would mean that the index is not usable when reopened. Did you get any error log messages in Elasticsearch? Having invalid synonyms should log the error to your Elasticsearch log. In case no error is logged, could you provide your synonym set rules to try to reproduce the issue? Thanks! |
Hi @carlosdelest, You were right it was indeed the chaining of the filters that caused some invalid synonyms , i do not know which one was it since overtime i deleted and add new rules , i now tried it since you mentioned this and it did create the index Thanks for the reply! |
Updating a synonym set will try to reload analyzers. In case there's an error in reloading, you will get the reload analyzers response error in the update. If analyzers fail to reload, the change won't be applied to the analyzer and the index will be on green status until it is reopened (via closing / opening or a node restart), so you can revert your change or further change your synonym set to rectify the offending synonym set. Ways to actually prevent this issue before happening:
We're working on a fix to this issue that will come in 8.16 - basically we will make |
This sounds good to me i'l do just that , once again thank you for your answer ! |
Elasticsearch Version
8.11.4
Installed Plugins
No response
Java Version
bundled
OS Version
Linux fedora 6.9.7-100.fc39.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Jun 27 18:06:32 UTC 2024 x86_64 GNU/Linux
Problem Description
while trying to switch from synonym type to synonym_graph i had these settings , i first tried to create a test index in the kibana dev tools by using PUT with the mapping and settings found in steps to reproduce , however that ended up in an usable index with no error thrown just a timeout after a while , after that i tried to remove one of the filters from the analyzer and then worked just fine and created my index keep in mind that this exact mapping/settings worked fine with the synonyme type.
Steps to Reproduce
Use the following to create a test index :
Logs (if relevant)
No response
The text was updated successfully, but these errors were encountered: