Class ContextBuilder<E extends ContextMapping<?>>
java.lang.Object
org.elasticsearch.search.suggest.completion.context.ContextBuilder<E>
- Direct Known Subclasses:
CategoryContextMapping.Builder
,GeoContextMapping.Builder
Builder for
ContextMapping
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract E
build()
Create a newCategoryContextMapping
static GeoContextMapping.Builder
Create a newGeoContextMapping
-
Field Details
-
name
-
-
Constructor Details
-
ContextBuilder
- Parameters:
name
- of the context mapper to build
-
-
Method Details
-
build
-
geo
Create a newGeoContextMapping
-
category
Create a newCategoryContextMapping
-