matches

open override fun matches(field: String, ctx: LeafReaderContext, doc: Int): IntervalMatchesIterator?

Return a IntervalMatchesIterator over the intervals defined by this IntervalsSource for a given document and field

Returns `null` if no intervals exist in the given document and field

Parameters

field

the field to read positions from

ctx

the document's context

doc

the document to return matches for