Bobo query fails on an index where document commits were interleaved between Document adds

Description

1. When documents are added to an index with interleaved commits. Query (text:Foo*) on this index using BoboBrowser returns three results and all results are the same documents (with doc id 0)

add Document1 (with field text:Foo1)
commit
add Document2 (with field text:Foo2)
commit
add Document3 (with field text:Foo3)
commit

2. When all three documents are added with a single commit in the end, Query (Foo*) using Bobo browser works where the expected three documents are returned.

add Document1 (with field text:Foo1)
add Document2 (with field text:Foo2)
add Document3 (with field text:Foo3)
commit

3. In Scenario (1) when the index is queried using lucene API, it works.

Attached is a test case (BoboTestCase) with three tests.

testWithInterleavedCommitsUsingBobo (FAIL)
testWithSingleCommit (PASS)
testWithInterleavedCommitsUsingLuceneQuery (PASS)

Environment

Run using Lucene 4.3.1

Status

Assignee

John Wang

Reporter

Prasad Kulkarni

Labels

None

Affects versions

Priority

Major
Configure