public final class CategoryQueryContext extends java.lang.Object implements ToXContent
CategoryContextMapping| Modifier and Type | Class and Description |
|---|---|
static class |
CategoryQueryContext.Builder |
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
NAME |
EMPTY_PARAMS| Modifier and Type | Method and Description |
|---|---|
static CategoryQueryContext.Builder |
builder() |
boolean |
equals(java.lang.Object o) |
static CategoryQueryContext |
fromXContent(QueryParseContext context) |
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(QueryParseContext context) throws java.io.IOException
java.io.IOExceptionpublic XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
toXContent in interface ToXContentjava.io.IOException