Getting Score while running percolate


(Nisar Adappadathil) #1

Hi

I am running percolation

POST http://localhost:9200/abcd/xyz/_mpercolate -d
'{"percolate" : {"index" : "abcd", "type" : "xyz", "id" : "AVXe7oZSVXJ_HQBQwl6O" } }
{}
{"percolate" : {"index" : "abcd", "type" : "xyz", "id" : "AVXe7wgIVXJ_HQBQwl6X" } }
{}'

The result is like below:

{
"responses": [{
"_shards": {
"total": 5,
"failed": 0,
"successful": 5
},
"took": 640279,
"total": 2779,
"matches": [{
"highlight": {},
"_index": "abcd",
"_id": "AVhDG7njU3UfE0eD2q2G"
}, {
"highlight": {},
"_index": "abcd",
"_id": "AVhDGwOfU3UfE0eD2qur"
}]
}]
}

So In each Match only highlight, index and id is coming.
Can we get the match score here inside each matched query. So that we can make out howt much it got matched to the document.

Thanks
Nisar


(Nisar Adappadathil) #2

Please reply on this.


(Nisar Adappadathil) #3

Please reply ..Im stuck on this. any help would be appreciated


(David Pilato) #4

Percolate query gives you back a score now in 5.0: https://www.elastic.co/guide/en/elasticsearch/reference/5.0/query-dsl-percolate-query.html


(Nisar Adappadathil) #5

Thanks a lot.This should work.


(system) #6

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.