|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.elasticsearch.index.query.BaseQueryBuilder org.elasticsearch.index.query.TermsQueryBuilder
public class TermsQueryBuilder
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent |
---|
ToXContent.MapParams, ToXContent.Params |
Field Summary |
---|
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent |
---|
EMPTY_PARAMS |
Constructor Summary | |
---|---|
TermsQueryBuilder(String name,
double... values)
A query for a field based on several terms matching on any of them. |
|
TermsQueryBuilder(String name,
float... values)
A query for a field based on several terms matching on any of them. |
|
TermsQueryBuilder(String name,
int... values)
A query for a field based on several terms matching on any of them. |
|
TermsQueryBuilder(String name,
long... values)
A query for a field based on several terms matching on any of them. |
|
TermsQueryBuilder(String name,
Object... values)
A query for a field based on several terms matching on any of them. |
|
TermsQueryBuilder(String name,
String... values)
A query for a field based on several terms matching on any of them. |
Method Summary | |
---|---|
TermsQueryBuilder |
boost(float boost)
Sets the boost for this query. |
TermsQueryBuilder |
disableCoord(boolean disableCoord)
Disables Similarity#coord(int,int) in scoring. |
protected void |
doXContent(XContentBuilder builder,
ToXContent.Params params)
|
TermsQueryBuilder |
minimumMatch(int minimumMatch)
Sets the minimum number of matches across the provided terms. |
TermsQueryBuilder |
minimumShouldMatch(String minimumShouldMatch)
|
Methods inherited from class org.elasticsearch.index.query.BaseQueryBuilder |
---|
buildAsBytes, buildAsBytes, toString, toXContent |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TermsQueryBuilder(String name, String... values)
name
- The field namevalues
- The termspublic TermsQueryBuilder(String name, int... values)
name
- The field namevalues
- The termspublic TermsQueryBuilder(String name, long... values)
name
- The field namevalues
- The termspublic TermsQueryBuilder(String name, float... values)
name
- The field namevalues
- The termspublic TermsQueryBuilder(String name, double... values)
name
- The field namevalues
- The termspublic TermsQueryBuilder(String name, Object... values)
name
- The field namevalues
- The termsMethod Detail |
---|
public TermsQueryBuilder minimumMatch(int minimumMatch)
public TermsQueryBuilder minimumShouldMatch(String minimumShouldMatch)
public TermsQueryBuilder boost(float boost)
boost
in interface BoostableQueryBuilder<TermsQueryBuilder>
public TermsQueryBuilder disableCoord(boolean disableCoord)
protected void doXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
doXContent
in class BaseQueryBuilder
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |