Builder

class Builder

A builder for multi-phrase queries

Constructors

Link copied to clipboard
constructor()

Default constructor.

constructor(multiPhraseQuery: MultiPhraseQuery)

Copy constructor: this will create a builder that has the same configuration as the provided builder.

Functions

Link copied to clipboard

Add multiple terms at the next position in the phrase. Any of the terms may match (a disjunction). The array is not copied or mutated, the caller should consider it immutable subsequent to calling this method.

Add a single term at the next position in the phrase.

fun add(terms: Array<Term>, position: Int): MultiPhraseQuery.Builder

Allows to specify the relative position of terms within the phrase. The array is not copied or mutated, the caller should consider it immutable subsequent to calling this method.

Link copied to clipboard
Link copied to clipboard

Sets the phrase slop for this query.