[ 
https://issues.apache.org/jira/browse/SOLR-6613?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17013199#comment-17013199
 ] 

ASF subversion and git services commented on SOLR-6613:
-------------------------------------------------------

Commit 72dea4919ebc79721167d451e7c7afa022aeee05 in lucene-solr's branch 
refs/heads/branch_8x from Bruno Roustant
[ https://gitbox.apache.org/repos/asf?p=lucene-solr.git;h=72dea49 ]

SOLR-6613: TextField.analyzeMultiTerm does not throw an exception when Analyzer 
returns no terms. (Bruno Roustant)


> 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, 6.0
>            Reporter: Bruno Roustant
>            Assignee: Bruno Roustant
>            Priority: Major
>         Attachments: TestTextField.java
>
>          Time Spent: 1h
>  Remaining Estimate: 0h
>
> 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). However, SolrQueryParserBase needs also to 
> be fixed to correctly handle null returned by TextField.analyzeMultiTerm().
> See attached TestTextField for the corresponding new test class.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to