mirror of https://github.com/apache/lucene.git
Check whether document exists without relying on the id (#13160)
This commit is contained in:
parent
012b959b05
commit
49db29e59f
|
@ -186,8 +186,7 @@ public class TestDocumentsImpl extends DocumentsTestBase {
|
|||
documents.firstTerm("title").orElseThrow(IllegalStateException::new);
|
||||
Term term = documents.seekTerm("adv").orElseThrow(IllegalStateException::new);
|
||||
assertEquals("adventures", term.text());
|
||||
int docid = documents.firstTermDoc().orElseThrow(IllegalStateException::new);
|
||||
assertEquals(1, docid);
|
||||
assertTrue(documents.firstTermDoc().isPresent());
|
||||
}
|
||||
|
||||
@Test
|
||||
|
|
Loading…
Reference in New Issue