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

SpellCheckComponent should build or load indices on startup and commits

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.3
    • 1.3
    • spellchecker
    • None

    Description

      SpellCheckComponent must be able to build/load spell check index on startup and commits. With SOLR-605, SpellCheckComponent can register an event listener for firstSearcher and newSearcher events and rebuild/reload indices as appropriate.

      • If index uses a FSDirectory and exists on disk then just reload it or else build it on firstSearcher event.
      • If index is built from a Solr field then re-build it on newSearcher event.

      This will help avoid having to add QuerySenderListener in configuration and will not force people to issue build on first query.

      All this should be configurable so that people who don't want to rebuild on commits should be able to turn this feature off per configured spell checker.

      Attachments

        1. SOLR-622.patch
          11 kB
          Shalin Shekhar Mangar
        2. SOLR-622.patch
          8 kB
          Shalin Shekhar Mangar
        3. SOLR-622.patch
          7 kB
          Shalin Shekhar Mangar

        Issue Links

          Activity

            People

              shalin Shalin Shekhar Mangar
              shalin Shalin Shekhar Mangar
              Votes:
              2 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: