public static class MultiPhraseQuery.Builder extends Object
Constructor and Description |
---|
Builder()
Default constructor.
|
Builder(MultiPhraseQuery multiPhraseQuery)
Copy constructor: this will create a builder that has the same
configuration as the provided builder.
|
Modifier and Type | Method and Description |
---|---|
MultiPhraseQuery.Builder |
add(Term term)
Add a single term at the next position in the phrase.
|
MultiPhraseQuery.Builder |
add(Term[] terms)
Add multiple terms at the next position in the phrase.
|
MultiPhraseQuery.Builder |
add(Term[] terms,
int position)
Allows to specify the relative position of terms within the phrase.
|
MultiPhraseQuery |
build()
Builds a
MultiPhraseQuery . |
MultiPhraseQuery.Builder |
setSlop(int s)
Sets the phrase slop for this query.
|
public Builder()
public Builder(MultiPhraseQuery multiPhraseQuery)
public MultiPhraseQuery.Builder setSlop(int s)
PhraseQuery.getSlop()
public MultiPhraseQuery.Builder add(Term term)
public MultiPhraseQuery.Builder add(Term[] terms)
public MultiPhraseQuery.Builder add(Term[] terms, int position)
public MultiPhraseQuery build()
MultiPhraseQuery
.Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.