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

Use SpellingQueryConverter as default if there is no queryconverter defined

    XMLWordPrintableJSON

Details

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

    Description

      the relevant code (org.apache.solr.handler.component.SpellCheckComponent) only checks if the size of the queryConverters map equals 1 and throws a RuntimeException with the message "One and only one queryConverter may be defined" if it does not.
      But if there are no query converters defined this message is quite misleading.

      Use the SpellingQueryConverter as the default if none are defined in the configuration instead of a misleading error message.

      Attachments

        1. SOLR-694.patch
          2 kB
          Shalin Shekhar Mangar

        Activity

          People

            shalin Shalin Shekhar Mangar
            dlx Stefan Oestreicher
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: