|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.elasticsearch.index.query.BaseFilterBuilder org.elasticsearch.index.query.TermsFilterBuilder
public class TermsFilterBuilder
A filer for a field based on several terms matching on any of them.
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 | |
---|---|
TermsFilterBuilder(String name,
double... values)
A filer for a field based on several terms matching on any of them. |
|
TermsFilterBuilder(String name,
float... values)
A filer for a field based on several terms matching on any of them. |
|
TermsFilterBuilder(String name,
int... values)
A filer for a field based on several terms matching on any of them. |
|
TermsFilterBuilder(String name,
Iterable values)
A filer for a field based on several terms matching on any of them. |
|
TermsFilterBuilder(String name,
long... values)
A filer for a field based on several terms matching on any of them. |
|
TermsFilterBuilder(String name,
Object... values)
A filer for a field based on several terms matching on any of them. |
|
TermsFilterBuilder(String name,
String... values)
A filer for a field based on several terms matching on any of them. |
Method Summary | |
---|---|
TermsFilterBuilder |
cache(boolean cache)
Should the filter be cached or not. |
TermsFilterBuilder |
cacheKey(String cacheKey)
|
void |
doXContent(XContentBuilder builder,
ToXContent.Params params)
|
TermsFilterBuilder |
execution(String execution)
Sets the execution mode for the terms filter. |
TermsFilterBuilder |
filterName(String filterName)
Sets the filter name for the filter that can be used when searching for matched_filters per hit. |
Methods inherited from class org.elasticsearch.index.query.BaseFilterBuilder |
---|
toXContent |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TermsFilterBuilder(String name, String... values)
name
- The field namevalues
- The termspublic TermsFilterBuilder(String name, int... values)
name
- The field namevalues
- The termspublic TermsFilterBuilder(String name, long... values)
name
- The field namevalues
- The termspublic TermsFilterBuilder(String name, float... values)
name
- The field namevalues
- The termspublic TermsFilterBuilder(String name, double... values)
name
- The field namevalues
- The termspublic TermsFilterBuilder(String name, Object... values)
name
- The field namevalues
- The termspublic TermsFilterBuilder(String name, Iterable values)
name
- The field namevalues
- The termsMethod Detail |
---|
public TermsFilterBuilder execution(String execution)
public TermsFilterBuilder filterName(String filterName)
public TermsFilterBuilder cache(boolean cache)
public TermsFilterBuilder cacheKey(String cacheKey)
public void doXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
doXContent
in class BaseFilterBuilder
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |