Uses of Class org.apache.lucene.search.PhraseQuery.Builder (Lucene 10.5.0 core API)
Description: use: package: org.apache.lucene.search, class: PhraseQuery, class: Builder

# Uses of Class
org.apache.lucene.search.PhraseQuery.Builder

Packages that use PhraseQuery.Builder
Package
Description
org.apache.lucene.search
Code to search indices.

- ## Uses of PhraseQuery.Builder in org.apache.lucene.search

  Methods in org.apache.lucene.search that return PhraseQuery.Builder
  Modifier and Type
  Method
  Description
  `PhraseQuery.Builder`
  PhraseQuery.Builder.`add(Term term)`
  Adds a term to the end of the query phrase.
  `PhraseQuery.Builder`
  PhraseQuery.Builder.`add(Term term, int position)`
  Adds a term to the end of the query phrase.
  `PhraseQuery.Builder`
  PhraseQuery.Builder.`setMaxTerms(int maxTerms)`
  Set the maximum number of terms allowed in the phrase query.
  `PhraseQuery.Builder`
  PhraseQuery.Builder.`setSlop(int slop)`
  Set the slop.