asubbu90 opened a new pull request, #12507: URL: https://github.com/apache/lucene/pull/12507
### Description Lucene's TruncateTokenFilterFactory.java has prefixLength as **byte** but the class TruncateTokenFilter.java reads it as **int**. So to make the behavior consistent changed the byte to int in the factory and added a test case for the same. #12449 Any length greater than 127 given would be accepted in TruncateTokenFilter but not in TruncateTokenFilterFactory. An exception is thrown due to parsing error from Byte.parseByte method. -- 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 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