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

Change SpellCheckComponent default analyzer when queryAnalyzerFieldType is not defined

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 4.9, 6.0
    • Component/s: spellchecker
    • Labels:
      None

      Description

      In the collection1 example, the SpellCheckComponent uses the query analyzer of "text_general" FieldType. If "queryAnalyzerFieldType" is removed from the configuration a WhitespaceAnalyzer is used by default.

      I suggest we could change the default to SimpleAnalyzer so that "foo" and "Foo" gives the same results and log that the analyzer is missing.

      Also are there more places in solrconfig which have dependencies on schema like this?

        Attachments

        1. SOLR-5111.patch
          13 kB
          Varun Thacker
        2. SOLR-5111.patch
          2 kB
          Varun Thacker

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              varun Varun Thacker
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: