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

FreeTextSuggester Nullpointer when building dictionary

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.10.2
    • Fix Version/s: 5.1, 6.0
    • Component/s: Suggester
    • Labels:
      None

      Description

      Using FreeTextSuggester. When starting Solr or reloading core, all suggest requests will fail due to a Nullpointer. There is a HTTP 500 response code with the following body. Note that the error returned does not have a msg section but only a trace:

      {
        "error":{
          "trace":"java.lang.NullPointerException\n\tat org.apache.lucene.search.suggest.analyzing.FreeTextSuggester.lookup(FreeTextSuggester.java:542)\n\tat org.apache.lucene.search.suggest.analyzing.FreeTextSuggester.lookup(FreeTextSuggester.java:440)\n\tat org.apache.lucene.search.suggest.analyzing.FreeTextSuggester.lookup(FreeTextSuggester.java:429)\n\tat org.apache.solr.spelling.suggest.SolrSuggester.getSuggestions(SolrSuggester.java:199)\n\tat 
      ...
      

      Offending line:

            BytesReader bytesReader = fst.getBytesReader();
      

      The fst is null at this time.

        Attachments

          Activity

            People

            • Assignee:
              janhoy Jan Høydahl
              Reporter:
              janhoy Jan Høydahl
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: