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

ASF subversion and git services commented on LUCENE-5472:
---------------------------------------------------------

Commit 1574637 from [email protected] in branch 'dev/branches/branch_4x'
[ https://svn.apache.org/r1574637 ]

LUCENE-5472: IndexWriter.addDocument will now throw an IllegalArgumentException 
if a Term to be indexed exceeds IndexWriter.MAX_TERM_LENGTH (merge r1574595)

> Long terms should generate a RuntimeException, not just infoStream
> ------------------------------------------------------------------
>
>                 Key: LUCENE-5472
>                 URL: https://issues.apache.org/jira/browse/LUCENE-5472
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: Hoss Man
>         Attachments: LUCENE-5472.patch, LUCENE-5472.patch, LUCENE-5472.patch, 
> LUCENE-5472.patch
>
>
> As reported on the solr-user list, when a term is greater then 2^15 bytes it 
> is silently ignored at indexing time -- a message is logged in to infoStream 
> if enabled, but no error is thrown.
> seems like we should change this behavior (if nothing else starting in 5.0) 
> to throw an exception.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to