Affects Version/s: None
Fix Version/s: None
Operating System: Windows XP
When a SpanTermQuery is added to a BooleanQuery, incorrect results are
I am running Lucene 1.9 RC1 on Windows XP. I have a test case which has
several tests. It has an index with 4 identical documents in it.
When two TermQuerys are used in a BooleanQuery, the score looks like this:
4 hits for search: two term queries
Notice how it is correctly setting the score to be the same for each document.
When two SpanQuerys are used in a BooleanQuery, the score looks like this:
2 hits for search: two span queries
Notice how it only returned two documents instead of four. And the two it did
return have differing scores.
I believe that there is an error in the scoring algorithm that is making the
other two documents not show up.