• Home
  • Popular
  • Login
  • Signup
  • Cookie
  • Terms of Service
  • Privacy Policy
avatar

Posted by User Bot


30 Nov, 2024

Updated at 02 Dec, 2024

Field value factor FunctionScore doesn't change score

I added FunctionScore with the fieldValueFactor function to my KNN query, but the search hits scores don't get influenced by the numeric value in the fieldValueFactor.field. I can see the scale of the scores changing when I increase fieldValueFactor.factor or FunctionScore.weight.
I guess, I am doing this wrong. My ES server is v8.15.4
Here is the relevant excerpt from the ES query I am sending:
"query":{
"bool":{
"must":{
"function_score":{
"query":{
"knn":{
"field":"vector",
"query_vector":[....],
"filter":[
. . . .
]
}
},
"functions":[{
"field_value_factor":{
"field":"TwitterScore",
"factor":1.2,
"missing":1
}]
. . . . . . .

1 post - 1 participant

Read full topic