You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Markus Jelsma (JIRA)" <ji...@apache.org> on 2013/07/30 13:45:48 UTC
[jira] [Commented] (SOLR-5090) NPE in DirectSpellChecker with
alternativeTermCount and mm.
[ https://issues.apache.org/jira/browse/SOLR-5090?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13723757#comment-13723757 ]
Markus Jelsma commented on SOLR-5090:
-------------------------------------
NPE does not always show up if there is at least one misspelling. The following yields and error:
q=zinkoide vaseline creme&spellcheck.alternativeTermCount=0&mm=3 (zinkoxide is misspelled as zinkoide)
but this one doesn't:
q=zinkoide vaseline crème&spellcheck.alternativeTermCount=0&mm=3 (note the accent)
Accents are folded in our the analyzers but not in the spellchecked field.
> NPE in DirectSpellChecker with alternativeTermCount and mm.
> -----------------------------------------------------------
>
> Key: SOLR-5090
> URL: https://issues.apache.org/jira/browse/SOLR-5090
> Project: Solr
> Issue Type: Bug
> Components: spellchecker
> Affects Versions: 4.4
> Environment: 4.4.0 1504776 - sarowe - 2013-07-19 02:58:35
> Reporter: Markus Jelsma
> Fix For: 5.0, 4.5
>
>
> Query with three terms of which one is misspelled and spellcheck.alternativeTermCount=0&mm=3 yields the following NPE:
> {code}
> ERROR org.apache.solr.servlet.SolrDispatchFilter – null:java.lang.NullPointerException
> at org.apache.lucene.search.spell.DirectSpellChecker.suggestSimilar(DirectSpellChecker.java:422)
> at org.apache.lucene.search.spell.DirectSpellChecker.suggestSimilar(DirectSpellChecker.java:355)
> at org.apache.solr.spelling.DirectSolrSpellChecker.getSuggestions(DirectSolrSpellChecker.java:189)
> at org.apache.solr.handler.component.SpellCheckComponent.process(SpellCheckComponent.java:188)
> at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:208)
> at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:135)
> at org.apache.solr.core.SolrCore.execute(SolrCore.java:1904)
> at org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:659)
> at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:362)
> at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:158
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org