diff options
author | Christopher Speller <crspeller@gmail.com> | 2018-01-29 14:17:40 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-29 14:17:40 -0800 |
commit | 961c04cae992eadb42d286d2f85f8a675bdc68c8 (patch) | |
tree | 3408f2d06f847e966c53485e2d54c692cdd037c1 /vendor/gopkg.in/olivere/elastic.v5/search_queries_bool.go | |
parent | 8d66523ba7d9a77129844be476732ebfd5272d64 (diff) | |
download | chat-961c04cae992eadb42d286d2f85f8a675bdc68c8.tar.gz chat-961c04cae992eadb42d286d2f85f8a675bdc68c8.tar.bz2 chat-961c04cae992eadb42d286d2f85f8a675bdc68c8.zip |
Upgrading server dependancies (#8154)
Diffstat (limited to 'vendor/gopkg.in/olivere/elastic.v5/search_queries_bool.go')
-rw-r--r-- | vendor/gopkg.in/olivere/elastic.v5/search_queries_bool.go | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/vendor/gopkg.in/olivere/elastic.v5/search_queries_bool.go b/vendor/gopkg.in/olivere/elastic.v5/search_queries_bool.go index 8ae223834..a1ff17596 100644 --- a/vendor/gopkg.in/olivere/elastic.v5/search_queries_bool.go +++ b/vendor/gopkg.in/olivere/elastic.v5/search_queries_bool.go @@ -9,7 +9,7 @@ import "fmt" // A bool query matches documents matching boolean // combinations of other queries. // For more details, see: -// https://www.elastic.co/guide/en/elasticsearch/reference/5.2/query-dsl-bool-query.html +// https://www.elastic.co/guide/en/elasticsearch/reference/6.0/query-dsl-bool-query.html type BoolQuery struct { Query mustClauses []Query @@ -17,7 +17,6 @@ type BoolQuery struct { filterClauses []Query shouldClauses []Query boost *float64 - disableCoord *bool minimumShouldMatch string adjustPureNegative *bool queryName string @@ -58,11 +57,6 @@ func (q *BoolQuery) Boost(boost float64) *BoolQuery { return q } -func (q *BoolQuery) DisableCoord(disableCoord bool) *BoolQuery { - q.disableCoord = &disableCoord - return q -} - func (q *BoolQuery) MinimumShouldMatch(minimumShouldMatch string) *BoolQuery { q.minimumShouldMatch = minimumShouldMatch return q @@ -106,7 +100,7 @@ func (q *BoolQuery) Source() (interface{}, error) { // "term" : { "tag" : "elasticsearch" } // } // ], - // "minimum_number_should_match" : 1, + // "minimum_should_match" : 1, // "boost" : 1.0 // } // } @@ -195,9 +189,6 @@ func (q *BoolQuery) Source() (interface{}, error) { if q.boost != nil { boolClause["boost"] = *q.boost } - if q.disableCoord != nil { - boolClause["disable_coord"] = *q.disableCoord - } if q.minimumShouldMatch != "" { boolClause["minimum_should_match"] = q.minimumShouldMatch } |