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?
Also, one very important thing – rescoring cannot be combined with sorting,
because sorting is done after changes introduced by rescoring.
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:
Has anyone been able to use query rescoring and sort by a field other then
Whenever I add the sort, I get a constant score of 1 to all documents,
even when adding track_scores.
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 firstname.lastname@example.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/02346858-9665-4fab-8614-aabbbe38a256%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.