Package org.apache.lucene.search
Class SynonymQuery.Builder
java.lang.Object
org.apache.lucene.search.SynonymQuery.Builder
- Enclosing class:
- SynonymQuery
A builder for
SynonymQuery
.-
Constructor Summary
-
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
.build()
Builds theSynonymQuery
.
-
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
. -
build
Builds theSynonymQuery
.
-