Builder

class Builder

A builder for phrase queries.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
fun add(term: Term?, position: Int = if (positions.isEmpty) 0 else 1 + positions.get(positions.size() - 1)): PhraseQuery.Builder

Adds a term to the end of the query phrase. The relative position of the term is the one immediately after the last term added.

Link copied to clipboard

Build a phrase query based on the terms that have been added.

Link copied to clipboard

Set the slop.