Affects Version/s: 6.2.1
Fix Version/s: None
I'm getting a NullPointerException when using collation during spell check. This is the message I'm getting: Exception trying to re-query to check if a spell check possibility would return any hits.
My spell check config for this search handler:
The field "suggest" is a field in the index, which is also (usually) queried with this search handler. The field is filled with lots of data created by edge ngrams, since it's intended usage is for an autocomplete field.
This issue is very similar to
SOLR-8807, but the NPE is occurring one line in the code later (solr\core\src\java\org\apache\solr\spelling\SpellCheckCollator.java). As a result the patch attached to that issue probably won't work in my case.
Although I'm using Solr 6.2.1, the source file is still identical to Solr 6.5.0.
The line causing my exception is when determining the hits.
I've noticed the exception only occurs when no more than 2 alternatives are found, but when 3 alternatives (maxCollations) are found, the NPE isn't occurring.
As a workaround I could live for now with turning collations off. (Update: I've suppressed logging of these exceptions in log4j.properties.)
Please let me know if you need more information. Thanks!