Hello Friends,
When i use "min_score" in my query sorting stop working.
Also min_score displays only 10 results?
Below is my code,
$result = $es->search(array(
"query" => array(
"dis_max" => array(
"queries" => array(
0 => array(
"field" => array(
"title" => $search
)
)
)
),
"min_score" => 0.5
),
"from" => 0,
"size" => 100000,
"filter" => array(
"geo_distance" => array(
"distance" => "10000mi",
"jos_content.location" => array(
"lat" => $lat,
"lon" => $lon
)
)
),
"sort" => array(
0 => array(
"_geo_distance" => array(
"jos_content.location" => array(
"lat" => $lat,
"lon" => $lon
),
"order" => "asc",
"unit" => "km"
)
),
1 => "_score"
)
)
);
Any help is very much appreciated
Thanks,
Vallabh
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/64245c51-c2ef-42c4-941c-a2add312cfce%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.