Documentation ¶
Index ¶
- type Elastic
- func (e *Elastic) GetDataFromId(c context.Context, id string) (ElasticHitsMGet, error)
- func (e *Elastic) GetMapping(c context.Context) (interface{}, error)
- func (e *Elastic) Query(c context.Context, offset int, limit int, searchQuery string) (ElasticHits, error)
- func (e *Elastic) QueryStruct(c context.Context, searchQuery interface{}) (ElasticHits, error)
- func (e *Elastic) QueryStructMGet(c context.Context, searchQuery interface{}) ([]ElasticHitsMGet, error)
- func (e *Elastic) QueryStructWithSearchQueryUrl(c context.Context, searchQuery interface{}, searchQueryUrl string) (ElasticHits, error)
- type ElasticFilterWithSort
- type ElasticHits
- type ElasticHitsMGet
- type ElasticMatchQuery
- type ElasticQuery
- type ElasticQueryMust
- type ElasticQueryMustShould
- type ElasticQueryMustWithSort
- type ElasticQueryWithMust
- type ElasticQueryWithShould
- type ElasticQueryWithSort
- type ElasticQueryWithSortShould
- type ElasticResponse
- type ElasticResponseMGet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Elastic ¶
func (*Elastic) GetDataFromId ¶
func (*Elastic) QueryStruct ¶
func (e *Elastic) QueryStruct(c context.Context, searchQuery interface{}) (ElasticHits, error)
func (*Elastic) QueryStructMGet ¶
func (e *Elastic) QueryStructMGet(c context.Context, searchQuery interface{}) ([]ElasticHitsMGet, error)
func (*Elastic) QueryStructWithSearchQueryUrl ¶
type ElasticFilterWithSort ¶
type ElasticFilterWithSort struct { Query struct { Bool struct { Should []interface{} `json:"should"` MinimumShouldMatch string `json:"minimum_should_match"` } `json:"bool"` } `json:"query"` Size int `json:"size"` From int `json:"from"` MinScore float32 `json:"min_score"` Sort []interface{} `json:"sort"` }
type ElasticHits ¶
type ElasticHitsMGet ¶
type ElasticMatchQuery ¶
type ElasticMatchQuery struct { Match struct { All string `json:"_all"` } `json:"match"` }
type ElasticQuery ¶
type ElasticQueryMust ¶
type ElasticQueryMustShould ¶
type ElasticQueryWithMust ¶
type ElasticQueryWithShould ¶
type ElasticQueryWithSort ¶
type ElasticQueryWithSort struct { ElasticQuery Sort []interface{} `json:"sort"` }
type ElasticQueryWithSortShould ¶
type ElasticQueryWithSortShould struct { ElasticQueryMustShould Sort []interface{} `json:"sort"` }
type ElasticResponse ¶
type ElasticResponseMGet ¶
type ElasticResponseMGet struct {
Docs []ElasticHitsMGet `json:"docs"`
}
Click to show internal directories.
Click to hide internal directories.