Documentation ¶
Index ¶
- Variables
- func NewBoolQuery() *elastic.BoolQuery
- func NewDateRangeAggregation() *elastic.DateRangeAggregation
- func NewExistsQuery(name string) *elastic.ExistsQuery
- func NewFilterAggregation() *elastic.FilterAggregation
- func NewFuzzyQuery(name string, value interface{}) *elastic.FuzzyQuery
- func NewHasChildQuery(childType string, query elastic.Query) *elastic.HasChildQuery
- func NewHasParentQuery(parentType string, query elastic.Query) *elastic.HasParentQuery
- func NewMatchPhraseQuery(name string, value interface{}) *elastic.MatchPhraseQuery
- func NewMatchQuery(name string, text interface{}) *elastic.MatchQuery
- func NewMultiMatchQuery(text interface{}, field ...string) *elastic.MultiMatchQuery
- func NewQueryStringQuery(queryString string) *elastic.QueryStringQuery
- func NewRangeQuery(name string) *elastic.RangeQuery
- func NewScriptQuery(script string) *elastic.ScriptQuery
- func NewTermQuery(name string, value interface{}) *elastic.TermQuery
- func NewTermsQuery(name string, value ...interface{}) *elastic.TermsQuery
- func NewWildcardQuery(name string, wildcard string) *elastic.WildcardQuery
- type SearchResult
Constants ¶
This section is empty.
Variables ¶
View Source
var Client *elastic.Client
Functions ¶
func NewDateRangeAggregation ¶
func NewDateRangeAggregation() *elastic.DateRangeAggregation
func NewExistsQuery ¶
func NewExistsQuery(name string) *elastic.ExistsQuery
func NewFilterAggregation ¶
func NewFilterAggregation() *elastic.FilterAggregation
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 NewScriptQuery ¶
func NewScriptQuery(script string) *elastic.ScriptQuery
func NewTermQuery ¶
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
Click to show internal directories.
Click to hide internal directories.