add

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


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.


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.