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

FreeTextSuggester Nullpointer when building dictionary

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.10.2
    • 5.1, 6.0
    • Suggester
    • 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

        1. SOLR-7084.patch
          1 kB
          Jan Høydahl

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: