Class CategoryQueryContext
java.lang.Object
org.elasticsearch.search.suggest.completion.context.CategoryQueryContext
- All Implemented Interfaces:
org.elasticsearch.xcontent.ToXContent,org.elasticsearch.xcontent.ToXContentObject
public final class CategoryQueryContext
extends Object
implements org.elasticsearch.xcontent.ToXContentObject
Defines the query context for
CategoryContextMapping-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
org.elasticsearch.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.xcontent.ToXContent.MapParams, org.elasticsearch.xcontent.ToXContent.Params -
Field Summary
FieldsFields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY_PARAMS -
Method Summary
Modifier and TypeMethodDescriptionstatic CategoryQueryContext.Builderbuilder()booleanstatic CategoryQueryContextfromXContent(org.elasticsearch.xcontent.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 prefixorg.elasticsearch.xcontent.XContentBuildertoXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.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
public static CategoryQueryContext fromXContent(org.elasticsearch.xcontent.XContentParser parser) throws IOException - Throws:
IOException
-
toXContent
public org.elasticsearch.xcontent.XContentBuilder toXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceorg.elasticsearch.xcontent.ToXContent- Throws:
IOException
-