Hi everyone,

I'm looking at using two different implementations of spell checking
together: DirectSolrSpellChecker and FileBasedSpellChecker but I get the
following error:

msg: "All checkers need to use the same Analyzer.",
trace: "java.lang.IllegalArgumentException: All checkers need to use the
same Analyzer. at
org.apache.solr.spelling.ConjunctionSolrSpellChecker.addChecker(ConjunctionSolrSpellChecker.java:79)
at
org.apache.solr.handler.component.SpellCheckComponent.getSpellChecker(SpellCheckComponent.java:603)
at
org.apache.solr.handler.component.SpellCheckComponent.prepare(SpellCheckComponent.java:126)
at ...

The source mentions that the "initial use-case was to use
WordBreakSolrSpellChecker in conjunction with the DirectSolrSpellChecker".

If I make a query with only of the dictionaries (file or direct), they both
work fine, combining them into one query throws the error. I'm not sure if
I'm doing something wrong or if I just can't use these two together (yet).

I'm using 6.2.0. Thanks for any help!

Ryan

Reply via email to