asubbu90 opened a new issue, #12449:
URL: https://github.com/apache/lucene/issues/12449

   ### Description
   
   TruncateTokenFilterFactory class parses PREFIX_LENGTH_KEY value as Byte 
which goes upto 127 and then is stored in prefixLength attribute. 
TruncateTokenFilter class expects the argument in int which has a bigger range 
than byte. Any value greater than 127 throws a exception while being parsed as 
Byte in the TruncateTokenFilterFactory class.
   
   I didnt see any documentation in the TruncateTokenFilterFactory class that 
this value should be less than 128. 
   
   ### Version and environment details
   
   Lucene 9.7.0 . Also verified in latest main code.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


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

Reply via email to