Debian Codegraph @

suggester.go

raw
1 // Copyright 2012-present 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
5 package 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.
12 type Suggester interface {
13 Name() string
14 Source(includeName bool) (interface{}, error)
15 }