From 961c04cae992eadb42d286d2f85f8a675bdc68c8 Mon Sep 17 00:00:00 2001 From: Christopher Speller Date: Mon, 29 Jan 2018 14:17:40 -0800 Subject: Upgrading server dependancies (#8154) --- vendor/gopkg.in/olivere/elastic.v5/search_queries_bool.go | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) (limited to 'vendor/gopkg.in/olivere/elastic.v5/search_queries_bool.go') 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 } -- cgit v1.2.3-1-g7c22