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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdds the providedtermas a synonym.Adds the providedtermas a synonym, document frequencies of this term will be boosted byboost.Adds the providedtermas 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 providedtermas a synonym. -
addTerm
Adds the providedtermas a synonym, document frequencies of this term will be boosted byboost. -
addTerm
Adds the providedtermas a synonym, document frequencies of this term will be boosted byboost. -
build
Builds theSynonymQuery.
-