You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Cassandra Targett (JIRA)" <ji...@apache.org> on 2018/01/31 18:47:00 UTC
[jira] [Commented] (SOLR-11858) NPE in DirectSpellChecker
[ https://issues.apache.org/jira/browse/SOLR-11858?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16347370#comment-16347370 ]
Cassandra Targett commented on SOLR-11858:
------------------------------------------
I'm not able to reproduce this with either 7.1 or 7.2, but not sure if I'm following your setup. Here's what I did:
# Started Solr with {{bin/solr -e techproducts}}. This:
## Creates a collection with the {{sample_techproducts_config}} with spellcheck defaults that seem to match with what you used
## Indexes exampledocs
# Then I did a query for "aple" to the /spell requestHandler: http://localhost:8654/solr/techproducts/spell?q=aple
# I got 1 result as expected for that dataset ("apple").
Can you correct these steps or add any additional information to try to reproduce this?
> NPE in DirectSpellChecker
> -------------------------
>
> Key: SOLR-11858
> URL: https://issues.apache.org/jira/browse/SOLR-11858
> Project: Solr
> Issue Type: Bug
> Security Level: Public(Default Security Level. Issues are Public)
> Components: spellchecker
> Affects Versions: 7.1
> Reporter: Markus Jelsma
> Priority: Major
> Fix For: master (8.0), 7.3
>
>
> We just came across the following NPE. It seems this NPE only appears when the query is incorrectly spelled but response has more than 0 results. We have not observed this on other 7.1.0 deployments.
> {code}
> 2018-01-16 09:15:00.009 ERROR (qtp329611835-19) [c] o.a.s.h.RequestHand
> lerBase java.lang.NullPointerException
> at
> org.apache.lucene.search.spell.DirectSpellChecker.suggestSimilar(DirectSpellChecker.java:421)
> at
> org.apache.lucene.search.spell.DirectSpellChecker.suggestSimilar(DirectSpellChecker.java:353)
> at
> org.apache.solr.spelling.DirectSolrSpellChecker.getSuggestions(DirectSolrSpellChecker.java:186)
> at
> org.apache.solr.handler.component.SpellCheckComponent.process(SpellCheckComponent.java:195)
> at
> org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:295)
> at
> org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:177)
> at org.apache.solr.core.SolrCore.execute(SolrCore.java:2484)
> at
> {code}
> Config:
> {code}
> <searchComponent name="spellcheck" class="solr.SpellCheckComponent">
> <str name="queryAnalyzerFieldType">text_general</str>
> <lst name="spellchecker">
> <str name="name">default</str>
> <str name="field">spellcheck</str>
> <str name="classname">solr.DirectSolrSpellChecker</str>
> <str name="distanceMeasure">internal</str>
> <float name="accuracy">0.5</float>
> <int name="maxEdits">2</int>
> <int name="minPrefix">1</int>
> <int name="maxInspections">5</int>
> <int name="minQueryLength">4</int>
> <float name="maxQueryFrequency">0.01</float>
> </lst>
> {code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org