ExactPhraseMatcher

Expert: Find exact phrases

Constructors

Link copied to clipboard
constructor(postings: Array<PhraseQuery.PostingsAndFreq>, scoreMode: ScoreMode, scorer: Similarity.SimScorer, matchCost: Float)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

An estimate of the average cost of finding all matches on a document

Functions

Link copied to clipboard
open override fun approximation(): DocIdSetIterator

Approximation that only matches documents that have all terms.

Link copied to clipboard
open override fun endOffset(): Int

The end offset of the current match

Link copied to clipboard
open override fun endPosition(): Int

The end position of the current match

Link copied to clipboard
open override fun impactsApproximation(): ImpactsDISI

Approximation that is aware of impacts.

Link copied to clipboard
open override fun maxFreq(): Float

An upper bound on the number of possible matches on this document

Link copied to clipboard
open override fun nextMatch(): Boolean

Find the next match on the current document, returning false if there are none.

Link copied to clipboard
open override fun reset()

Called after .approximation has been advanced

Link copied to clipboard
open override fun sloppyWeight(): Float

The slop-adjusted weight of the current match

Link copied to clipboard
open override fun startOffset(): Int

The start offset of the current match

Link copied to clipboard
open override fun startPosition(): Int

The start position of the current match