Skip to content

Commit 51db2cb

Browse files
committed
fix(QueryBool): minimum_should_match should be string type
1 parent 444d64d commit 51db2cb

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

src/ElasticDSL/Query/Compound/Bool.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,9 @@ export function getBoolITC(opts: mixed = {}): InputTypeComposer {
4747
`),
4848
},
4949
minimum_should_match: {
50-
type: 'Int',
50+
type: 'String',
5151
description: desc(`
52-
The minimum number of should clauses to match can be set using
53-
the minimum_should_match parameter.
52+
The minimum number of should clauses to match.
5453
`),
5554
},
5655
must_not: {

src/ElasticDSL/Query/__snapshots__/Query.test.js.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,8 @@ input Elastic_QueryBool_50 {
111111
# minimum_should_match parameter.
112112
should: Elastic_Query_50
113113
114-
# The minimum number of should clauses to match can be set using the minimum_should_match parameter.
115-
minimum_should_match: Int
114+
# The minimum number of should clauses to match.
115+
minimum_should_match: String
116116
117117
# The clause (query) must not appear in the matching documents. Clauses are
118118
# executed in filter context meaning that scoring is ignored and clauses are

0 commit comments

Comments
 (0)