I have a query where I boost the total score of each document by a path
[
{
"$search": {
"index": "exampleIndex",
"compound": {
"should": [
{
"text": {
"query": ["exampleQueryTerm"],
"path": ["examplePath"]
}
}
],
"minimumShouldMatch": 1,
"score": {
"boost": {
"path": "customBoostScore",
"default": 0.1
}
}
}
}
}
]
But boosting the score by a path seems to degrade performance by up to 20x, meaning a ~700ms second query now takes more than 10s, which is not acceptable for my use case.
Is this a known caveat of boosting the score by a path?
Since the I indexed customBoostScore
(as number
as required) and have store: true
I definitely did not expect that.