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
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 useMethods inherited from class org.elasticsearch.search.suggest.completion.context.ContextBuilder
category, geo
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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:
build
in classContextBuilder<CategoryContextMapping>
-