Skip to content

Commit

Permalink
fix(MultiMatch): add missing fields to multi_match query
Browse files Browse the repository at this point in the history
  • Loading branch information
nodkz committed Oct 3, 2017
1 parent f0ec48b commit 0a7103f
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/elasticDSL/Aggs/__tests__/__snapshots__/Aggs-test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -1091,6 +1091,14 @@ input Elastic_QueryMultiMatch_50 {
operator: Elastic_QueryMultiMatchOperatorEnum_50
minimum_should_match: String
analyzer: String
slop: Int
boost: Float
fuzziness: JSON
prefix_length: Int
max_expansions: Int
rewrite: String
zero_terms_query: JSON
cutoff_frequency: Float
}
enum Elastic_QueryMultiMatchOperatorEnum_50 {
Expand Down
9 changes: 9 additions & 0 deletions src/elasticDSL/Query/FullText/MultiMatch.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,15 @@ export function getMultiMatchITC(opts: mixed = {}): InputTypeComposer {
}`,
minimum_should_match: 'String',
analyzer: 'String',
slop: 'Int',
boost: 'Float',
fuzziness: 'JSON',
prefix_length: 'Int',
max_expansions: 'Int',
rewrite: 'String',
zero_terms_query: 'JSON',
cutoff_frequency: 'Float',
// lenient: 'JSON', // depricated from ES 5.3
},
})
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,14 @@ input Elastic_QueryMultiMatch_50 {
operator: Elastic_QueryMultiMatchOperatorEnum_50
minimum_should_match: String
analyzer: String
slop: Int
boost: Float
fuzziness: JSON
prefix_length: Int
max_expansions: Int
rewrite: String
zero_terms_query: JSON
cutoff_frequency: Float
}
enum Elastic_QueryMultiMatchOperatorEnum_50 {
Expand Down

0 comments on commit 0a7103f

Please sign in to comment.