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 Object
Builder forContextMapping
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedContextBuilder(String name)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract Ebuild()static CategoryContextMapping.Buildercategory(String name)Create a newCategoryContextMappingstatic GeoContextMapping.Buildergeo(String name)Create a newGeoContextMapping
-
-
-
Field Detail
-
name
protected String name
-
-
Constructor Detail
-
ContextBuilder
protected ContextBuilder(String name)
- Parameters:
name- of the context mapper to build
-
-
Method Detail
-
build
public abstract E build()
-
geo
public static GeoContextMapping.Builder geo(String name)
Create a newGeoContextMapping
-
category
public static CategoryContextMapping.Builder category(String name)
Create a newCategoryContextMapping
-
-