java.lang.Object
org.apache.lucene.search.SynonymQuery.Builder
- Enclosing class:
- SynonymQuery
A builder for
SynonymQuery
.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final String
private final List<SynonymQuery.TermAndBoost>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdds the providedterm
as a synonym.Adds the providedterm
as a synonym, document frequencies of this term will be boosted byboost
.Adds the providedterm
as a synonym, document frequencies of this term will be boosted byboost
.build()
Builds theSynonymQuery
.
-
Field Details
-
field
-
terms
-
-
Constructor Details
-
Builder
Sole constructor- Parameters:
field
- The target field name
-
-
Method Details
-
addTerm
Adds the providedterm
as a synonym. -
addTerm
Adds the providedterm
as a synonym, document frequencies of this term will be boosted byboost
. -
addTerm
Adds the providedterm
as a synonym, document frequencies of this term will be boosted byboost
. -
build
Builds theSynonymQuery
.
-