Markus Jelsma created SOLR-5090:
-----------------------------------

             Summary: NPE in DirectSpellChecker with alternativeTermCount and 
mm.
                 Key: SOLR-5090
                 URL: https://issues.apache.org/jira/browse/SOLR-5090
             Project: Solr
          Issue Type: Bug
          Components: spellchecker
    Affects Versions: 4.4
         Environment: 4.4.0 1504776 - sarowe - 2013-07-19 02:58:35
            Reporter: Markus Jelsma
             Fix For: 5.0, 4.5


Query with three terms of which one is misspelled and 
spellcheck.alternativeTermCount=0&mm=3 yields the following NPE:

{code}
ERROR org.apache.solr.servlet.SolrDispatchFilter  – 
null:java.lang.NullPointerException
        at 
org.apache.lucene.search.spell.DirectSpellChecker.suggestSimilar(DirectSpellChecker.java:422)
        at 
org.apache.lucene.search.spell.DirectSpellChecker.suggestSimilar(DirectSpellChecker.java:355)
        at 
org.apache.solr.spelling.DirectSolrSpellChecker.getSuggestions(DirectSolrSpellChecker.java:189)
        at 
org.apache.solr.handler.component.SpellCheckComponent.process(SpellCheckComponent.java:188)
        at 
org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:208)
        at 
org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:135)
        at org.apache.solr.core.SolrCore.execute(SolrCore.java:1904)
        at 
org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:659)
        at 
org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:362)
        at 
org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:158
{code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to