public static class SynonymQuery.Builder extends Object
SynonymQuery
.Modifier and Type | Method and Description |
---|---|
SynonymQuery.Builder |
addTerm(Term term)
Adds the provided
term as a synonym. |
SynonymQuery.Builder |
addTerm(Term term,
float boost)
Adds the provided
term as a synonym, document frequencies of this term
will be boosted by boost . |
SynonymQuery |
build()
Builds the
SynonymQuery . |
public Builder(String field)
field
- The target field namepublic SynonymQuery.Builder addTerm(Term term)
term
as a synonym.public SynonymQuery.Builder addTerm(Term term, float boost)
term
as a synonym, document frequencies of this term
will be boosted by boost
.public SynonymQuery build()
SynonymQuery
.Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.