Hi all. I my case I have elastic search query look like this
$query = [
"index" => "my_index",
"type" => "q",
"body" => [
"query" => [
"dis_max" => [
"queries" => [
[
"match" => ["title" => "test"]
],
[
"match" => ["body" => "test"]
],
[
"match" => ["name" => "test"]
]
]
]
],
"min_score"=> 1
],
"size" => 1000,
];
I want to Increase priority of title result, as I want to multiply result of title by 2. Please help ! Thanks
warkolm
(Mark Walkom)
June 5, 2017, 9:19am
2
Yes. But Can not create query. can You help me to create elastic query with boosting ,
warkolm
(Mark Walkom)
June 6, 2017, 9:58am
4
Can you show us what you have so far, with the boosting changes you want?
I need to give priority to title , than to body . So I mean that i want to multiply title result score by 2 and the body score by 1.5
system
(system)
Closed
July 5, 2017, 9:51am
6
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.