Documentation ¶
Index ¶
- func ConstructCategoryIDQuery(id int64) interface{}
- func ConstructHeightQuery(min, max int) interface{}
- func ConstructPriceQuery(min, max int) interface{}
- func ConstructTitleQuery(t string) interface{}
- func ConstructWidthQuery(min, max int) interface{}
- type ESClient
- func (ec *ESClient) Delete(ctx context.Context, document docgen.Document) error
- func (ec *ESClient) GetInfo() error
- func (ec *ESClient) Index(ctx context.Context, document docgen.Document) error
- func (ec *ESClient) Query(ctx context.Context, q []interface{}, size int) ([]docgen.Document, error)
- func (ec *ESClient) ScrollDocID(ctx context.Context, size int) ([]int, error)
- func (ec *ESClient) Update(ctx context.Context, document docgen.Document) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConstructCategoryIDQuery ¶
func ConstructCategoryIDQuery(id int64) interface{}
func ConstructHeightQuery ¶
func ConstructHeightQuery(min, max int) interface{}
func ConstructPriceQuery ¶
func ConstructPriceQuery(min, max int) interface{}
func ConstructTitleQuery ¶
func ConstructTitleQuery(t string) interface{}
func ConstructWidthQuery ¶
func ConstructWidthQuery(min, max int) interface{}
Types ¶
type ESClient ¶
type ESClient struct {
// contains filtered or unexported fields
}
ESClient represents an Elasticsearch client object.
func NewElasticsearchClient ¶
NewElasticsearchClient creates a new instance of ElasticsearchClient.
func (*ESClient) ScrollDocID ¶
Click to show internal directories.
Click to hide internal directories.