query.go 435 B

1234567891011121314
  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. package elastic
  5. // Represents the generic query interface.
  6. // A querys' only purpose is to return the
  7. // source of the query as a JSON-serializable
  8. // object. Returning a map[string]interface{}
  9. // will do.
  10. type Query interface {
  11. Source() interface{}
  12. }