How to interpret score value return from the percolate query search?
What is the difference between score received on single document search vs multiple document search on percolate index?
How to interpret score value return from the percolate query search?
What is the difference between score received on single document search vs multiple document search on percolate index?
The returned _score is based on how well the returned percolator query matched with
the documents provided in the percolate
query.
Internally the percolate
query creates a temporary inverted index in memory for
the documents provided in the percolate
query. The statistics from this index
are used to compute the scores.
Thanks @mvg for the reply.
I am trying to to match 10,000 records to percolate query and response gives me composite score.
So how should I calculate individual score for each document from the response.
P.S. I don't want to hit elasticsearch for each record.
Thanks
Hi @niketpatel2525,
What you could is use the msearch api and in the msearch request
embed a search request for each document you like to percolate.
Then each msearch response item gives the _score for just that document.
I hope this helps.
Martijn
Thanks @mvg. This solution worked for me.
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
© 2020. All Rights Reserved - Elasticsearch
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant logo are trademarks of the Apache Software Foundation in the United States and/or other countries.