Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-5090

NPE in DirectSpellChecker with alternativeTermCount and mm.

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.4
    • Fix Version/s: 4.8.1, 4.9, 6.0
    • Component/s: spellchecker
    • Labels:
      None
    • Environment:

      4.4.0 1504776 - sarowe - 2013-07-19 02:58:35

      Description

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

      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
      

        Attachments

        1. SOLR-5090.patch
          3 kB
          James Dyer
        2. SOLR-5090.patch
          6 kB
          James Dyer

          Activity

            People

            • Assignee:
              jdyer James Dyer
              Reporter:
              markus17 Markus Jelsma
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: