Documentation
¶
Index ¶
- func NewID() string
- func RecordChunks(in chan Record, chunkSize int) chan []Record
- type Client
- func (c *Client) Bulk(indexName string, records []Record) error
- func (c *Client) BulkOp(fn func())
- func (c *Client) BulkText(indexName string, messages []string) error
- func (c *Client) CreateIndex(name string) error
- func (c *Client) CreateTemplate(name string, template io.Reader) error
- func (c *Client) CreateTemplateFromFile(name, filename string) error
- func (c *Client) DeleteIndex(name string) error
- func (c *Client) DisableIndexing(indexName string) error
- func (c *Client) EnableIndexing(indexName string) error
- func (c *Client) IndexExists(name string) bool
- func (c *Client) Push(indexName string, doc interface{}, id string) error
- func (c *Client) PushMessages(in io.Reader, nobulk bool)
- func (c *Client) PushRaw(indexName string, doc io.Reader, id string) error
- func (c *Client) Search(indexName string, request *SearchRequest, params *SearchParams) (*SearchResult, error)
- func (c *Client) SetRefreshInterval(indexName, interval string) error
- type Config
- type Hit
- type Hits
- type Record
- type SearchParams
- type SearchRequest
- type SearchResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RecordChunks ¶
Types ¶
type Client ¶
func (*Client) CreateIndex ¶
func (*Client) CreateTemplate ¶
func (*Client) CreateTemplateFromFile ¶
func (*Client) DeleteIndex ¶
func (*Client) DisableIndexing ¶
func (*Client) EnableIndexing ¶
func (*Client) IndexExists ¶
func (*Client) PushMessages ¶
PushMessages bulk inserts to Elastic Search JSON lines without parsing
func (*Client) Search ¶
func (c *Client) Search(indexName string, request *SearchRequest, params *SearchParams) (*SearchResult, error)
func (*Client) SetRefreshInterval ¶
type SearchParams ¶
func (*SearchParams) IsEmpty ¶
func (p *SearchParams) IsEmpty() bool
func (*SearchParams) String ¶
func (p *SearchParams) String() string
type SearchRequest ¶
Click to show internal directories.
Click to hide internal directories.