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

Use SpellingQueryConverter as default if there is no queryconverter defined

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 1.3
    • Fix Version/s: 1.3
    • Component/s: spellchecker
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: