Bool should query with avg score


(Zabazhanov Arkady) #1

Hello. I'm performing a bool should query and get something like this:

{"value"=>0.41639566,
"description"=>"product of:",
"details"=>
[{"value"=>1.249187,
"description"=>"sum of:",
"details"=>
[{"value"=>0.41639566,
"description"=>"ConstantScore(expert_skills:java)^2.0, product of:",
"details"=>
[{"value"=>2.0, "description"=>"boost"},
{"value"=>0.20819783, "description"=>"queryNorm"}]},
{"value"=>0.41639566,
"description"=>"ConstantScore(expert_skills:php)^2.0, product of:",
"details"=>
[{"value"=>2.0, "description"=>"boost"},
{"value"=>0.20819783, "description"=>"queryNorm"}]},
{"value"=>0.41639566,
"description"=>"ConstantScore(expert_skills:ruby)^2.0, product of:",
"details"=>
[{"value"=>2.0, "description"=>"boost"},
{"value"=>0.20819783, "description"=>"queryNorm"}]}]},
{"value"=>0.33333334, "description"=>"coord(3/9)"}]}

How could I force it to use avg scoring mode instead "description"=>"sum
of:" ?

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/2e9e2c59-80a0-40f9-a0b3-2849547af1e7%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


(system) #2