Documentation ¶
Overview ¶
Package es contains a minimal API client to query Elastic Search and export complete indexes.
As of now, it can only return all results for a given index.
Index ¶
Constants ¶
View Source
const ( HttpClientTimeout = time.Duration(5 * time.Second) HttpUserAgent = "qvain" HttpQueryString = "_search?size=10000" )
Configuration for http client
View Source
const ( FilterSourcesPath = "hits.hits.#._source" FilterCountPath = "hits.hits.#" )
Configuration for json path getter
Variables ¶
This section is empty.
Functions ¶
func Filter ¶
Filter returns the contents of the Json _sources key from the Elastic Search response, effectively filtering out some ES noise.
func FilterAndCount ¶
FilterAndCount returns the contents of the _sources key just like Filter(), but also returns a count of the number of elements to facilitate sanity checks. It is twice as slow as Filter().
Types ¶
Click to show internal directories.
Click to hide internal directories.