esquery
esquery copied to clipboard
FEATURE request. Missing boost support inside Match statement.
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.