1// Copyright 2012-2015 Oliver Eilhard. All rights reserved. 2// Use of this source code is governed by a MIT-license. 3// See http://olivere.mit-license.org/license.txt for details. 4 5package elastic 6 7// Represents the generic suggester interface. 8// A suggester's only purpose is to return the 9// source of the query as a JSON-serializable 10// object. Returning a map[string]interface{} 11// will do. 12type Suggester interface { 13 Name() string 14 Source(includeName bool) interface{} 15} 16