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)
    static GeoContextMapping.Builder geo​(java.lang.String name)
    Create a new GeoContextMapping

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait