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 forCategoryContextMapping
-
-
Field Summary
-
Fields inherited from class org.elasticsearch.search.suggest.completion.context.ContextBuilder
name
-
-
Constructor Summary
Constructors Constructor Description Builder(java.lang.String name)
Create a builder for a namedCategoryContextMapping
-
Method Summary
Modifier and Type Method Description CategoryContextMapping
build()
CategoryContextMapping.Builder
field(java.lang.String fieldName)
Set the name of the field to use-
Methods inherited from class org.elasticsearch.search.suggest.completion.context.ContextBuilder
category, geo
-
-
-
-
Constructor Detail
-
Builder
public Builder(java.lang.String name)
Create a builder for a namedCategoryContextMapping
- Parameters:
name
- name of the mapping
-
-
Method Detail
-
field
public CategoryContextMapping.Builder field(java.lang.String fieldName)
Set the name of the field to use
-
build
public CategoryContextMapping build()
- Specified by:
build
in classContextBuilder<CategoryContextMapping>
-
-