matches

open override fun matches(context: LeafReaderContext, doc: Int): Matches?

Returns Matches for a specific document, or null if the document does not match the parent query

A query match that contains no position information (for example, a Point or DocValues query) will return MatchesUtils.MATCH_WITH_NO_TERMS

Parameters

context

the reader's context to create the Matches for

doc

the document's id relative to the given context's reader