I read on this website https://dzone.com/articles/23-useful-elasticsearch-example-queries that I can use the caret sign ("^") to boost a field in a multi_match query, like so:
GET /bookdb_index/_search
{
"query": {
"multi_match": {
"query": "guide",
"fields": ["summary", "authors", "publisher", "title^20"]
}
}
}
But this is described nowhere in the Elastic documentation. Does anybody know something about it?
In addition, I noticed that the page on Boosting in the ES guide is very faulty:
https://www.elastic.co/guide/en/elasticsearch/reference/7.4/mapping-boost.html
It looks like it's a mix of index and query boosting.
If I find the time, I will correct it and create a PR.