|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.elasticsearch.index.query.BaseQueryBuilder
org.elasticsearch.index.query.TermQueryBuilder
public class TermQueryBuilder
A Query that matches documents containing a term.
| 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 | |
|---|---|
TermQueryBuilder(java.lang.String name,
boolean value)
Constructs a new term query. |
|
TermQueryBuilder(java.lang.String name,
double value)
Constructs a new term query. |
|
TermQueryBuilder(java.lang.String name,
float value)
Constructs a new term query. |
|
TermQueryBuilder(java.lang.String name,
int value)
Constructs a new term query. |
|
TermQueryBuilder(java.lang.String name,
long value)
Constructs a new term query. |
|
TermQueryBuilder(java.lang.String name,
java.lang.Object value)
Constructs a new term query. |
|
TermQueryBuilder(java.lang.String name,
java.lang.String value)
Constructs a new term query. |
|
| Method Summary | |
|---|---|
TermQueryBuilder |
boost(float boost)
Sets the boost for this query. |
void |
doXContent(XContentBuilder builder,
ToXContent.Params params)
|
| Methods inherited from class org.elasticsearch.index.query.BaseQueryBuilder |
|---|
buildAsBytes, buildAsBytes, buildAsUnsafeBytes, buildAsUnsafeBytes, toString, toXContent |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TermQueryBuilder(java.lang.String name,
java.lang.String value)
name - The name of the fieldvalue - The value of the term
public TermQueryBuilder(java.lang.String name,
int value)
name - The name of the fieldvalue - The value of the term
public TermQueryBuilder(java.lang.String name,
long value)
name - The name of the fieldvalue - The value of the term
public TermQueryBuilder(java.lang.String name,
float value)
name - The name of the fieldvalue - The value of the term
public TermQueryBuilder(java.lang.String name,
double value)
name - The name of the fieldvalue - The value of the term
public TermQueryBuilder(java.lang.String name,
boolean value)
name - The name of the fieldvalue - The value of the term
public TermQueryBuilder(java.lang.String name,
java.lang.Object value)
name - The name of the fieldvalue - The value of the term| Method Detail |
|---|
public TermQueryBuilder boost(float boost)
public void doXContent(XContentBuilder builder,
ToXContent.Params params)
throws java.io.IOException
doXContent in class BaseQueryBuilderjava.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||