You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Jan Høydahl (JIRA)" <ji...@apache.org> on 2015/02/09 10:23:34 UTC
[jira] [Commented] (SOLR-7084) FreeTextSuggester Nullpointer when
building dictionary
[ https://issues.apache.org/jira/browse/SOLR-7084?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14311968#comment-14311968 ]
Jan Høydahl commented on SOLR-7084:
-----------------------------------
Just throwing an exception is not very elegant. We could mask the exception and return empty list without further notice but that would render the API inconsistent. Here are two options:
A) Fail the whole request with temporary error code (e.g. 503 Service Unavailable)
B) Fail only the request for this dictionary, returning empty list and an error code (SuggesterResult)
I'm tempted to suggest A here for the sake of simplicity. If requesting multiple dictionaries in one request, you'll not get a response before all dictionaries are available and working.
> FreeTextSuggester Nullpointer when building dictionary
> ------------------------------------------------------
>
> Key: SOLR-7084
> URL: https://issues.apache.org/jira/browse/SOLR-7084
> Project: Solr
> Issue Type: Bug
> Components: Suggester
> Affects Versions: 4.10.2
> Reporter: Jan Høydahl
> Assignee: Jan Høydahl
> Fix For: 4.10.4, Trunk, 5.1
>
>
> Using {{FreeTextSuggester}}. When starting Solr or reloading core, all suggest requests will fail with Nullpointer
> {code}
> java.lang.NullPointerException\n\tat org.apache.lucene.search.suggest.analyzing.FreeTextSuggester.lookup(FreeTextSuggester.java:542)\n\tat org.apache.lucene.search.suggest.analyzing.FreeTextSuggester.lookup(FreeTextSuggester.java:440)\n\tat org.apache.lucene.search.suggest.analyzing.FreeTextSuggester.lookup(FreeTextSuggester.java:429)\n\tat org.apache.solr.spelling.suggest.SolrSuggester.getSuggestions(SolrSuggester.java:199)\n\tat
> {code}
> Offending line:
> {code}
> BytesReader bytesReader = fst.getBytesReader();
> {code}
> The fst is null at this time.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org