Class CategoryQueryContext.Builder
java.lang.Object
org.elasticsearch.search.suggest.completion.context.CategoryQueryContext.Builder
- Enclosing class:
- CategoryQueryContext
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
setBoost(int boost)
Sets the query-time boost of the context.setCategory(String category)
Sets the category of the category.setPrefix(boolean prefix)
Sets if the context should be treated as a prefix or not.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
setCategory
Sets the category of the category. This is a required field -
setPrefix
Sets if the context should be treated as a prefix or not. Defaults to false -
setBoost
Sets the query-time boost of the context. Defaults to 1. -
build
-