ToXContent
, ToXContentObject
public final class CategoryQueryContext extends java.lang.Object implements ToXContentObject
CategoryContextMapping
Modifier and Type | Class | Description |
---|---|---|
static class |
CategoryQueryContext.Builder |
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
Modifier and Type | Field | Description |
---|---|---|
static java.lang.String |
NAME |
EMPTY_PARAMS
Modifier and Type | Method | Description |
---|---|---|
static CategoryQueryContext.Builder |
builder() |
|
boolean |
equals(java.lang.Object o) |
|
static CategoryQueryContext |
fromXContent(XContentParser parser) |
|
int |
getBoost() |
Returns the query-time boost of the context
|
java.lang.String |
getCategory() |
Returns the category of the context
|
int |
hashCode() |
|
boolean |
isPrefix() |
Returns if the context should be treated as a prefix
|
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
isFragment
public static final java.lang.String NAME
public java.lang.String getCategory()
public boolean isPrefix()
public int getBoost()
public static CategoryQueryContext.Builder builder()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public static CategoryQueryContext fromXContent(XContentParser parser) throws java.io.IOException
java.io.IOException
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
toXContent
in interface ToXContent
java.io.IOException