I can send boost value with query like
{
"query": {
"bool": {
"should": [
{
"match": {
"title": {
"query": "quick brown fox",
"boost": 2
}
}
}
]
}
}
}
but I can also set boost value in mapping
{
"properties": {
"title": {
"type": "string",
"boost": 2
},
"tags": {
"type": "string"
}
}
}
And my question is. Which of this is faster while executing queries, to have boost in mapping or setting boost in query, or is it equaly fast.