|
[
Permlink
| « Hide
]
Thomas Peuss added a comment - 05/Feb/08 01:20 PM
A simple piece of code that shows the problem.
Indeed it's really a bug – thank you for finding this & reporting it Thomas!
We were ignoring the offset when computing the hash code internally. Lucene always passes '0' for this offset (only used in StopFilter currently) so it wasn't hitting any existing Lucene test cases. I turned your example into a test case in the attached patch. I will commit shortly. Thanks for the quick response. I can confirm that the patch fixes the problem.
Super, thanks Thomas! I just committed this.
I'll port this one to 2.3.1 as well.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||