ToXContent, ToXContentObjectpublic 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, waitisFragmentpublic 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.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic static CategoryQueryContext fromXContent(XContentParser parser) throws java.io.IOException
java.io.IOExceptionpublic XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
toXContent in interface ToXContentjava.io.IOException