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

Karl Wettin commented on LUCENE-985:
------------------------------------

I doubt anyone will have a problem with the limit. And if they hit the 
exception it is probably due to bad end-user input of some kind. I always run a 
token filter that leaves out any token larger than 250 charachters or so, 
depending on the application. (It was quite accidential that I hit this AIOOBE.)

That would also be a recommendation I think makes sense in the documentation 
people will look up when hitting the exception.

> AIOOB thrown when length of termText is longer than 16384 characters 
> (ArrayIndexOutOfBoundsException)
> -----------------------------------------------------------------------------------------------------
>
>                 Key: LUCENE-985
>                 URL: https://issues.apache.org/jira/browse/LUCENE-985
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: Index
>    Affects Versions: 2.3
>            Reporter: Michael McCandless
>            Assignee: Michael McCandless
>            Priority: Minor
>             Fix For: 2.3
>
>
> DocumentsWriter has a max term length of 16384; if you cross that you
> get an unfriendly ArrayIndexOutOfBoundsException.  We should fix to raise a 
> clearer exception.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to