You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Bruno Roustant (JIRA)" <ji...@apache.org> on 2014/10/09 15:43:33 UTC
[jira] [Updated] (SOLR-6613) TextField.analyzeMultiTerm should not
throw exception when analyzer returns no term
[ https://issues.apache.org/jira/browse/SOLR-6613?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Bruno Roustant updated SOLR-6613:
---------------------------------
Attachment: TestTextField.java
> TextField.analyzeMultiTerm should not throw exception when analyzer returns no term
> -----------------------------------------------------------------------------------
>
> Key: SOLR-6613
> URL: https://issues.apache.org/jira/browse/SOLR-6613
> Project: Solr
> Issue Type: Bug
> Components: Schema and Analysis
> Affects Versions: 4.3.1, 4.10.2, Trunk
> Reporter: Bruno Roustant
> Attachments: TestTextField.java
>
>
> In TextField.analyzeMultiTerm()
> at line
> try {
> if (!source.incrementToken())
> throw new SolrException();
> The method should not throw an exception if there is no token because having no token is legitimate because all tokens may be filtered out (e.g. with a blocking Filter such as StopFilter).
> In this case it should simply return null (as it already returns null in some cases, see first line of method).
--
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