You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2014/03/05 19:06:47 UTC

[jira] [Commented] (LUCENE-5472) Long terms should generate a RuntimeException, not just infoStream

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

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

Commit 1574595 from hossman@apache.org in branch 'dev/trunk'
[ https://svn.apache.org/r1574595 ]

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

> 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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org