elastic

package
v1.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 25, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	Count(ctx context.Context, index string, query Query) (int64, error)
	Scroll(index string, size int, query Query) ScrollService
	Stop()
}

type Query

type Query interface {
	Build() map[string]interface{}
}

type ScrollService

type ScrollService interface {
	Do(ctx context.Context) (SearchResult, error)
	Clear(ctx context.Context) error
	FetchSourceContext(includeFields []string) ScrollService
}

type SearchHit

type SearchHit interface {
	GetSource() []byte
}

type SearchResult

type SearchResult interface {
	Hits() []SearchHit
	Total() int64
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL