Documentation ¶
Index ¶
- func New(cfg config.Config, log *logrus.Logger) error
- type Elasticsearch
- func (r *Elasticsearch) Delete() bool
- func (r *Elasticsearch) Get(identifiers []string, sr *search.Results) error
- func (r *Elasticsearch) Insert(record metadata.Record) error
- func (r *Elasticsearch) Query(collections []string, term string, bbox []float64, timeVal []time.Time, ...) error
- func (r *Elasticsearch) Update() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Elasticsearch ¶
type Elasticsearch struct { Type string URL string Username string Password string Mappings map[string]string Index elastic.Client IndexName string TypeName string }
Elasticsearch provides an object model for repository.
func (*Elasticsearch) Delete ¶
func (r *Elasticsearch) Delete() bool
Delete deletes a record from the repository
func (*Elasticsearch) Get ¶
func (r *Elasticsearch) Get(identifiers []string, sr *search.Results) error
Get gets specified metadata records from the repository
func (*Elasticsearch) Insert ¶
func (r *Elasticsearch) Insert(record metadata.Record) error
Insert inserts a record into the repository
func (*Elasticsearch) Query ¶
func (r *Elasticsearch) Query(collections []string, term string, bbox []float64, timeVal []time.Time, from int, size int, sr *search.Results) error
Query performs a search against the repository
func (*Elasticsearch) Update ¶
func (r *Elasticsearch) Update() bool
Update updates a record in the repository
Click to show internal directories.
Click to hide internal directories.