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