Module org.elasticsearch.server
Class CategoryQueryContext
java.lang.Object
org.elasticsearch.search.suggest.completion.context.CategoryQueryContext
- All Implemented Interfaces:
ToXContent,ToXContentObject
Defines the query context for
CategoryContextMapping-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params -
Field Summary
FieldsFields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Method Summary
Modifier and TypeMethodDescriptionstatic CategoryQueryContext.Builderbuilder()booleanstatic CategoryQueryContextfromXContent(XContentParser parser) intgetBoost()Returns the query-time boost of the contextReturns the category of the contextinthashCode()booleanisPrefix()Returns if the context should be treated as a prefixtoXContent(XContentBuilder builder, ToXContent.Params params) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.xcontent.ToXContentObject
isFragment
-
Field Details
-
NAME
- See Also:
-
-
Method Details
-
getCategory
Returns the category of the context -
isPrefix
public boolean isPrefix()Returns if the context should be treated as a prefix -
getBoost
public int getBoost()Returns the query-time boost of the context -
builder
-
equals
-
hashCode
public int hashCode() -
fromXContent
- Throws:
IOException
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceToXContent- Throws:
IOException
-