Class CategoryContextMapping.Builder
java.lang.Object
org.elasticsearch.search.suggest.completion.context.ContextBuilder<CategoryContextMapping>
org.elasticsearch.search.suggest.completion.context.CategoryContextMapping.Builder
- Enclosing class:
- CategoryContextMapping
public static class CategoryContextMapping.Builder extends ContextBuilder<CategoryContextMapping>
Builder for
CategoryContextMapping-
Field Summary
-
Constructor Summary
Constructors Constructor Description Builder(java.lang.String name)Create a builder for a namedCategoryContextMapping -
Method Summary
Modifier and Type Method Description CategoryContextMappingbuild()CategoryContextMapping.Builderfield(java.lang.String fieldName)Set the name of the field to useMethods inherited from class org.elasticsearch.search.suggest.completion.context.ContextBuilder
category, geo
-
Constructor Details
-
Builder
public Builder(java.lang.String name)Create a builder for a namedCategoryContextMapping- Parameters:
name- name of the mapping
-
-
Method Details
-
field
Set the name of the field to use -
build
- Specified by:
buildin classContextBuilder<CategoryContextMapping>
-