Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildSearchRequest ¶
func BuildSearchRequest(query interface{}, index string) (esapi.SearchRequest, error)
func SetDiscSpaceThresholds ¶
Types ¶
type ElasticDriver ¶
type ElasticDriver interface { SetProperty(name string, prop interface{}) error // AddMapping add a document mapping to be registered with ElasticSearch AddMapping(mapping Mapping) error //Initialize the driver, register mappings with elasticserach. Timeout in ms to wait for elastic to be available. Initialize(timeout time.Duration) error GetConnection() (datastore.Connection, error) }
ElasticDriver describes an the Elastic Search driver
type Mapping ¶
type Mapping struct {
Entries map[string]interface{}
}
func NewMapping ¶
func (Mapping) MarshalJSON ¶
MarshalJSON returns *m as the JSON encoding of m.
func (*Mapping) UnmarshalJSON ¶
UnmarshalJSON sets *m to a copy of data.
Click to show internal directories.
Click to hide internal directories.