|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.elasticsearch.index.query.xcontent.BaseQueryBuilder
org.elasticsearch.index.query.xcontent.PrefixQueryBuilder
public class PrefixQueryBuilder
A Query that matches documents containing terms with a specified prefix.
| 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 | |
|---|---|
PrefixQueryBuilder(java.lang.String name,
java.lang.String prefix)
A Query that matches documents containing terms with a specified prefix. |
|
| Method Summary | |
|---|---|
PrefixQueryBuilder |
boost(float boost)
Sets the boost for this query. |
void |
doXContent(XContentBuilder builder,
ToXContent.Params params)
|
| Methods inherited from class org.elasticsearch.index.query.xcontent.BaseQueryBuilder |
|---|
buildAsBytes, buildAsBytes, buildAsUnsafeBytes, buildAsUnsafeBytes, toXContent |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PrefixQueryBuilder(java.lang.String name,
java.lang.String prefix)
name - The name of the fieldprefix - The prefix query| Method Detail |
|---|
public PrefixQueryBuilder 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 | ||||||||