Documentation ¶
Index ¶
- type Indexer
- type Indexer7
- func (idx *Indexer7) CloseBulk() error
- func (idx *Indexer7) CreateIndex(schema []byte) error
- func (idx *Indexer7) Delete(id string) error
- func (idx *Indexer7) Index(id string, doc any) error
- func (idx *Indexer7) Info() (clientVersion string, serverVersion string, err error)
- func (idx *Indexer7) StartBulk(workers int, flushbytes int, flushtime time.Duration) error
- type Indexer8
- func (idx *Indexer8) CloseBulk() error
- func (idx *Indexer8) CreateIndex(schema []byte) error
- func (idx *Indexer8) Delete(id string) error
- func (idx *Indexer8) Index(id string, doc any) error
- func (idx *Indexer8) Info() (clientVersion string, serverVersion string, err error)
- func (idx *Indexer8) StartBulk(workers int, flushbytes int, flushtime time.Duration) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Indexer ¶
type Indexer interface { Info() (clientVersion string, serverVersion string, err error) CreateIndex(schema []byte) error StartBulk(workers int, flushbytes int, flushtime time.Duration) error CloseBulk() error Delete(id string) error Index(id string, content any) error }
func NewIndexer7 ¶
type Indexer7 ¶
type Indexer7 struct {
// contains filtered or unexported fields
}
func (*Indexer7) CreateIndex ¶
Click to show internal directories.
Click to hide internal directories.