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

SpellcheckComponent throws NullPointerException on restart without build

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.3
    • 1.3
    • None
    • None

    Description

      from http://mail-archives.apache.org/mod_mbox/lucene-solr-user/200807.mbox/%3cC4AC838E.ADE7%25jonathan_lee@comcast.com%3e

      "I believe there is a bug in IndexBased- and FileBasedSpellChecker.java
      where the analyzer variable is only set on the build command. Therefore,
      when the index is reloaded, but not built after starting solr, issuing a
      query with the spellcheck.q parameter will cause a NullPointerException to
      be thrown (SpellCheckComponent.java:158). Moving the analyzer logic to the
      constructor seems to fix the problem."

      Attachments

        1. SOLR-648.patch
          11 kB
          Jonathan Lee
        2. SOLR-648.patch
          13 kB
          Shalin Shekhar Mangar
        3. SOLR-648.patch
          16 kB
          Shalin Shekhar Mangar

        Issue Links

          Activity

            People

              shalin Shalin Shekhar Mangar
              geoff Geoffrey Young
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: