v2

package
v0.0.0-...-e779149 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OpenSearch

type OpenSearch struct {
	// contains filtered or unexported fields
}

func New

func New(address string, basicAuth bool, username, password, index string) (*OpenSearch, error)

func (*OpenSearch) ClearScroll

func (o *OpenSearch) ClearScroll(scrollId string)

func (*OpenSearch) GetTotalHitCount

func (o *OpenSearch) GetTotalHitCount(v interface{}) int64

func (*OpenSearch) Scroll

func (o *OpenSearch) Scroll(id string) ([]byte, error)

func (*OpenSearch) Search

func (o *OpenSearch) Search(indices string, body []byte, scroll bool) ([]byte, error)

Jump to

Keyboard shortcuts

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