Hi,
Is there some way, that I can remove default boost term from elastic relevance scoring or make it 1(so it does not reflect in scoring). for example,
input query is
GET test_index/_search
{
"query": {
"match": {
"text": "asia pacific"
}
},"explain": true
}
partial results are
"details" : [
{
"value" : 6.5127892,
"description" : "weight(text:asia in 5417) [PerFieldSimilarity], result of:",
"details" : [
{
"value" : 6.5127892,
"description" : "score(freq=6.0), product of:",
"details" : [
{
"value" : 2.2,
"description" : "boost",
"details" : [ ]
},
{
"value" : 3.8113363,
"description" : "idf, computed as log(1 + (N - n + 0.5) / (n + 0.5)) from:",
"details" : [
{
"value" : 462,
"description" : "n, number of documents containing term",
"details" : [ ]
},
{
"value" : 20909,
"description" : "N, total number of documents with field",
"details" : [ ]
}
]
},
{
"value" : 0.7767246,
"description" : "tf, computed as freq / (freq + k1 * (1 - b + b * dl / avgdl)) from:",
"details" : [
{
"value" : 6.0,
"description" : "freq, occurrences of term within document",
"details" : [ ]
},
{
"value" : 1.2,
"description" : "k1, term saturation parameter",
"details" : [ ]
},
{
"value" : 0.75,
"description" : "b, length normalization parameter",
"details" : [ ]
},
{
"value" : 1048.0,
"description" : "dl, length of field (approximate)",
"details" : [ ]
},
{
"value" : 662.01294,
"description" : "avgdl, average length of field",
"details" : [ ]
}
]
}
]
}
]
},
This is the explanation of of one of the terms in a simple match query.
In the above example, I want to remove the boost term of 2.2 or make it equal to 1.
please suggest how to do this.
Thanks