Skip to content

Commit e461438

Browse files
committed
fix(DSL): add boost fields to FullText queries
1 parent 2d59eb8 commit e461438

File tree

5 files changed

+5
-0
lines changed

5 files changed

+5
-0
lines changed

src/elasticDSL/Query/FullText/Common.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ export function getCommonITC(opts: mixed = {}): InputTypeComposer {
2727
minimum_should_match: 'JSON',
2828
low_freq_operator: 'String',
2929
high_freq_operator: 'String',
30+
boost: 'Float',
3031
},
3132
})
3233
)

src/elasticDSL/Query/FullText/Match.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ export function getMatchITC(opts: mixed = {}): InputTypeComposer {
2424
operator: 'String',
2525
zero_terms_query: 'String',
2626
cutoff_frequency: 'Float',
27+
boost: 'Float',
2728
},
2829
})
2930
)

src/elasticDSL/Query/FullText/MatchPhrase.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ export function getMatchPhraseITC(opts: mixed = {}): InputTypeComposer {
2323
fields: {
2424
query: 'String',
2525
analyzer: 'String',
26+
boost: 'Float',
2627
},
2728
})
2829
)

src/elasticDSL/Query/FullText/MatchPhrasePrefix.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ export function getMatchPhrasePrefixITC(opts: mixed = {}): InputTypeComposer {
2323
fields: {
2424
query: 'String',
2525
max_expansions: 'Int',
26+
boost: 'Float',
2627
},
2728
})
2829
)

src/elasticDSL/Query/FullText/SimpleQueryString.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ export function getSimpleQueryStringITC(opts: mixed = {}): InputTypeComposer {
4141
lenient: 'Boolean',
4242
minimum_should_match: 'String',
4343
quote_field_suffix: 'String',
44+
boost: 'Float',
4445
},
4546
})
4647
);

0 commit comments

Comments
 (0)