Has anyone been able to use query rescoring and sort by a field other then
the score?
Whenever I add the sort, I get a constant score of 1 to all documents, even
when adding track_scores.
Did you get answer for your question?
I found alternatives that I add to my post but we need to use sort
especially with rescore..
Is there a way to make it happen?
http://jontai.me/blog/2013/01/advanced-scoring-in-elasticsearch/
But if you have different document types, you may need to make some manual
adjustments. For example, we index both articles and videos. Articles have
a lot of textual content — the entire body of the article — but videos only
have a short description field. By default Lucene will prefer a match in a
shorter field, so when videos match they tend to score higher than articles.
set metadat to documents types and then use the the script "script":
"_score * doc['rating'].value" to get the score .
On Wednesday, May 8, 2013 9:29:17 AM UTC+3, Meidan wrote:
Hi,
Has anyone been able to use query rescoring and sort by a field other then
the score?
Whenever I add the sort, I get a constant score of 1 to all documents,
even when adding track_scores.
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.