|
[
Permlink
| « Hide
]
Thomas Peuss added a comment - 05/Feb/08 01:20 PM
A simple piece of code that shows the problem.
Thomas Peuss made changes - 05/Feb/08 01:20 PM
Michael McCandless made changes - 05/Feb/08 01:38 PM
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.
Michael McCandless made changes - 05/Feb/08 01:44 PM
Thanks for the quick response. I can confirm that the patch fixes the problem.
Super, thanks Thomas! I just committed this.
Michael McCandless made changes - 05/Feb/08 02:04 PM
I'll port this one to 2.3.1 as well.
Michael McCandless made changes - 11/Oct/08 12:49 PM
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||