esquery icon indicating copy to clipboard operation
esquery copied to clipboard

FEATURE request. Missing boost support inside Match statement.

Open GoncharovArturChi opened this issue 3 years ago • 0 comments

At the moment there is no simple way to add boost directly into match statement. for example: { "match": { "name": { "boost": 30.0, "query": "Alex" } } }

the only way to have boost for match statement is huge overhead: { "bool": { "boost": 30, "must": [ { "match": { "name": { "query": "Alex" } } } ] } }

I propose to provide Boost method inside match statement to omit overcomplicating of queries. Solution is to add boost field to matchParams struct, Boost method for it and testCase to ensure that everything is mapped as expected.

GoncharovArturChi avatar Jan 06 '22 20:01 GoncharovArturChi