Rescore and track_scores

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.

Thanks.

--
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 elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

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.
http://elasticsearchserverbook.com/elasticsearch-0-90-using-rescore/

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.

http://grokbase.com/t/gg/elasticsearch/135ps9t41p/boosting-based-on-a-child-documents-field

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.

Thanks.

--
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 elasticsearch+unsubscribe@googlegroups.com.
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.