Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddDocumentOptions ¶
type BulkIndexerAction ¶
type BulkIndexerAction string
type Client ¶
type Client interface { AddDocument(ctx context.Context, indexName, documentID string, document []byte, opts *AddDocumentOptions) error BulkUpdate(ctx context.Context, indexName, url string, settings []byte) ([]byte, error) BulkIndexAdd(ctx context.Context, action BulkIndexerAction, index, documentID string, document []byte) error BulkIndexClose(context.Context) error Checker(ctx context.Context, state *health.CheckState) error CreateIndex(ctx context.Context, indexName string, indexSettings []byte) error DeleteIndex(ctx context.Context, indexName string) error DeleteIndices(ctx context.Context, indices []string) error GetAlias(ctx context.Context) ([]byte, error) GetIndices(ctx context.Context, indexPatterns []string) ([]byte, error) NewBulkIndexer(context.Context) error UpdateAliases(ctx context.Context, alias string, removeIndices, addIndices []string) error MultiSearch(ctx context.Context, searches []Search) ([]byte, error) Search(ctx context.Context, search Search) ([]byte, error) CountIndices(ctx context.Context, indices []string) ([]byte, error) }
type Config ¶
type Config struct { ClientLib Library MaxRetries int Address string Indexes []string Transport http.RoundTripper }
Config holds the configuration of search client
Click to show internal directories.
Click to hide internal directories.