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
Completion suggester fails when elastiknn is set to true #222
Comments
Thanks for posting. Some initial thoughts: The main difference when setting elastiknn to true is that it uses an older (faster) codec for doc values. I guess this is having some sort of interaction with whatever storage mechanism the completion suggester uses. I've personally never used the completion suggester myself, so I'll have to dig into the docs and implementation to see why it doesn't like the older codec. Also, I believe the Lucene folks have merged a fix for the issue that prompted using an older codec in the first place. This newer version of Lucene should be included in an upcoming version of ES. |
The configurable binary doc values compression was released in lucene 8.8.0: https://issues.apache.org/jira/browse/LUCENE-9378. This should let me get rid of the |
Hey @emla2805 . I realize it has been a long time. :) ES has still not totally solved the issue, even with the improvements in Lucene. However I figured out a potential intermediate solution: in 7.12.0, setting "index.elastiknn" to "false" and "index.codec" to "lucene_default" should use the new Lucene compression setting and elastiknn won't interfere with other functionality (e.g. suggestions). Let me know if you get a chance to try this out. |
Thanks for the response @alexklibisz, I will try your suggestion when I get the chance. It turned out that for our use-case and configuration we actually got better performance when setting |
Happy to hear you found it useful! I'll go ahead and close this since the main fix to this issue is being tracked in #254, but feel free to re-open if needed. |
Using the completion suggester feature fails when
elastiknn
is set totrue
in the index setting.Steps to replicate issue:
The query fails with response:
The issue goes away if elastiknn is set to false
The text was updated successfully, but these errors were encountered: