[ 
https://issues.apache.org/jira/browse/SOLR-694?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Shalin Shekhar Mangar updated SOLR-694:
---------------------------------------

    Fix Version/s: 1.3
         Assignee: Shalin Shekhar Mangar
      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.

  was:
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.

          Summary: Use SpellingQueryConverter as default if there is no 
queryconverter defined  (was: error message is misleading when there is no 
queryconverter defined)

> Use SpellingQueryConverter as default if there is no queryconverter defined
> ---------------------------------------------------------------------------
>
>                 Key: SOLR-694
>                 URL: https://issues.apache.org/jira/browse/SOLR-694
>             Project: Solr
>          Issue Type: Improvement
>          Components: spellchecker
>    Affects Versions: 1.3
>            Reporter: Stefan Oestreicher
>            Assignee: Shalin Shekhar Mangar
>            Priority: Trivial
>             Fix For: 1.3
>
>         Attachments: SOLR-694.patch
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to