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

SpellcheckComponent throws NullPointerException on restart without build

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.3
    • Fix Version/s: 1.3
    • Component/s: None
    • Labels:
      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
          16 kB
          Shalin Shekhar Mangar
        2. SOLR-648.patch
          13 kB
          Shalin Shekhar Mangar
        3. SOLR-648.patch
          11 kB
          Jonathan Lee

          Issue Links

            Activity

              People

              • Assignee:
                shalinmangar Shalin Shekhar Mangar
                Reporter:
                geoff Geoffrey Young
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: