Documentation ¶
Index ¶
- type Doc
- type EsClient
- func (c *EsClient) CreateIndex(i *Index, indexName string) (err error)
- func (c *EsClient) DelIndex(indexName string) error
- func (c *EsClient) Delete(index, id string) error
- func (c *EsClient) GetById(index, id string) (interface{}, error)
- func (c *EsClient) GetWhere(index string, termQuery elastic.Query, sortField string, asc bool, ...) ([]interface{}, error)
- func (c *EsClient) Insert(index, id string, bodyJson interface{}) error
- func (c *EsClient) Update(index, id string, bodyJson interface{}) error
- type Index
- type Mappings
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Index ¶
type Index struct { Settings struct { NumberOfShards int `json:"number_of_shards"` NumberOfReplicas int `json:"number_of_replicas"` } `json:"settings"` Mappings Mappings `json:"mappings"` }
func NewIndexTemplate ¶
func NewIndexTemplate() *Index
func (*Index) InjectIndex ¶
func (index *Index) InjectIndex(s interface{})
Click to show internal directories.
Click to hide internal directories.