Skip to content

Commit

Permalink
fix(QueryBool): minimum_should_match should be string type
Browse files Browse the repository at this point in the history
  • Loading branch information
nodkz committed Mar 13, 2017
1 parent 444d64d commit 51db2cb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions src/ElasticDSL/Query/Compound/Bool.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,9 @@ export function getBoolITC(opts: mixed = {}): InputTypeComposer {
`),
},
minimum_should_match: {
type: 'Int',
type: 'String',
description: desc(`
The minimum number of should clauses to match can be set using
the minimum_should_match parameter.
The minimum number of should clauses to match.
`),
},
must_not: {
Expand Down
4 changes: 2 additions & 2 deletions src/ElasticDSL/Query/__snapshots__/Query.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,8 @@ input Elastic_QueryBool_50 {
# minimum_should_match parameter.
should: Elastic_Query_50
# The minimum number of should clauses to match can be set using the minimum_should_match parameter.
minimum_should_match: Int
# The minimum number of should clauses to match.
minimum_should_match: String
# The clause (query) must not appear in the matching documents. Clauses are
# executed in filter context meaning that scoring is ignored and clauses are
Expand Down

0 comments on commit 51db2cb

Please sign in to comment.