ZoieSegmentTermDocs doesn't reset the _nextDelDoc cache after seek

Description

ZoieSegmentTermDocs doesn't reset the _nextDelDoc cache after seek. This may cause bug if the ZoieSegmentTermDocs are reuse in one query for multi term, such as term prefix query, in which case it may treat some deleted doc as nondeleted.

Here is my fix

ZoieSegmentTermDocs.java

Here is the code repo the bug

TermDocRangeTest.java

Environment

None

Status

Assignee

John Wang

Reporter

Zhuobin He

Labels

None

Components

Fix versions

Affects versions

Priority

Major
Configure