Simon Willnauer created LUCENE-4693:
---------------------------------------
Summary: FixedBitset might return wrong results if words.length >
actual words in the bitset
Key: LUCENE-4693
URL: https://issues.apache.org/jira/browse/LUCENE-4693
Project: Lucene - Core
Issue Type: Bug
Components: core/other
Affects Versions: 4.0, 4.1
Reporter: Simon Willnauer
Fix For: 4.2, 5.0
Currently we allow to pass in the actual words as a long[] to the FixedBitSet
yet if this array is oversized with respect to the actual words it needs to
hold the bits the FixedBitSet can return wrong results since we use
words.length (bits.lenght) as the bounds when we iterate over the bits ie. if
we need to find the next set bit. We should use the actual bound rather than
the size of the array.
as a site note, I think it would be interesting to explore passing an offset to
this too to enable to create bitsets from slices....
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]