elastic

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Client *elastic.Client

Functions

func NewBoolQuery

func NewBoolQuery() *elastic.BoolQuery

精确查询

func NewDateRangeAggregation

func NewDateRangeAggregation() *elastic.DateRangeAggregation

func NewExistsQuery

func NewExistsQuery(name string) *elastic.ExistsQuery

func NewFilterAggregation

func NewFilterAggregation() *elastic.FilterAggregation

func NewFuzzyQuery

func NewFuzzyQuery(name string, value interface{}) *elastic.FuzzyQuery

模糊查询

func NewHasChildQuery

func NewHasChildQuery(childType string, query elastic.Query) *elastic.HasChildQuery

func NewHasParentQuery

func NewHasParentQuery(parentType string, query elastic.Query) *elastic.HasParentQuery

func NewMatchPhraseQuery

func NewMatchPhraseQuery(name string, value interface{}) *elastic.MatchPhraseQuery

func NewMatchQuery

func NewMatchQuery(name string, text interface{}) *elastic.MatchQuery

func NewMultiMatchQuery

func NewMultiMatchQuery(text interface{}, field ...string) *elastic.MultiMatchQuery

通过多个字段查询

func NewQueryStringQuery

func NewQueryStringQuery(queryString string) *elastic.QueryStringQuery

func NewRangeQuery

func NewRangeQuery(name string) *elastic.RangeQuery

范围查询

func NewScriptQuery

func NewScriptQuery(script string) *elastic.ScriptQuery

func NewTermQuery

func NewTermQuery(name string, value interface{}) *elastic.TermQuery

func NewTermsQuery

func NewTermsQuery(name string, value ...interface{}) *elastic.TermsQuery

func NewWildcardQuery

func NewWildcardQuery(name string, wildcard string) *elastic.WildcardQuery

Types

type SearchResult

type SearchResult elastic.SearchResult

Jump to

Keyboard shortcuts

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