Skip to content

Commit 0a7103f

Browse files
committed
fix(MultiMatch): add missing fields to multi_match query
1 parent f0ec48b commit 0a7103f

File tree

3 files changed

+25
-0
lines changed

3 files changed

+25
-0
lines changed

src/elasticDSL/Aggs/__tests__/__snapshots__/Aggs-test.js.snap

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1091,6 +1091,14 @@ input Elastic_QueryMultiMatch_50 {
10911091
operator: Elastic_QueryMultiMatchOperatorEnum_50
10921092
minimum_should_match: String
10931093
analyzer: String
1094+
slop: Int
1095+
boost: Float
1096+
fuzziness: JSON
1097+
prefix_length: Int
1098+
max_expansions: Int
1099+
rewrite: String
1100+
zero_terms_query: JSON
1101+
cutoff_frequency: Float
10941102
}
10951103
10961104
enum Elastic_QueryMultiMatchOperatorEnum_50 {

src/elasticDSL/Query/FullText/MultiMatch.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,15 @@ export function getMultiMatchITC(opts: mixed = {}): InputTypeComposer {
4040
}`,
4141
minimum_should_match: 'String',
4242
analyzer: 'String',
43+
slop: 'Int',
44+
boost: 'Float',
45+
fuzziness: 'JSON',
46+
prefix_length: 'Int',
47+
max_expansions: 'Int',
48+
rewrite: 'String',
49+
zero_terms_query: 'JSON',
50+
cutoff_frequency: 'Float',
51+
// lenient: 'JSON', // depricated from ES 5.3
4352
},
4453
})
4554
);

src/elasticDSL/Query/__tests__/__snapshots__/Query-test.js.snap

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,14 @@ input Elastic_QueryMultiMatch_50 {
301301
operator: Elastic_QueryMultiMatchOperatorEnum_50
302302
minimum_should_match: String
303303
analyzer: String
304+
slop: Int
305+
boost: Float
306+
fuzziness: JSON
307+
prefix_length: Int
308+
max_expansions: Int
309+
rewrite: String
310+
zero_terms_query: JSON
311+
cutoff_frequency: Float
304312
}
305313
306314
enum Elastic_QueryMultiMatchOperatorEnum_50 {

0 commit comments

Comments
 (0)