And the way i call is
http://***...:9200/tournament/detail/_search?q=tournamentid:686&sort=score:forward&analyzer=sortable
. But i get random scores. I have another mapping for userid like:
And when i do a sort on userid i get the results sorted based on
userid properly. What am i missing here, i suppose my mapping
configuration for score needs a tweak.
And the way i call is
http:// ..*.**:9200/tournament/detail/_search?q=tournamentid:686&sort=score:forward&analyzer=sortable
. But i get random scores. I have another mapping for userid like:
And when i do a sort on userid i get the results sorted based on
userid properly. What am i missing here, i suppose my mapping
configuration for score needs a tweak.
Actually, you are correct, its in the sort parsing stage, where "score" is
used to denote sorting by the score of a doc... . Not sure what I took when
I coded it, but its a mistake. It should have been _score, as is the
convention for "internal" fields or constants in elasticsearch. Damn, need
to be changed, I will open an issue and change it, even though it breaks
backward, its important!
And the way i call is
http:// ..*.**:9200/tournament/detail/_search?q=tournamentid:686&sort=score:forward&analyzer=sortable
. But i get random scores. I have another mapping for userid like:
And when i do a sort on userid i get the results sorted based on
userid properly. What am i missing here, i suppose my mapping
configuration for score needs a tweak.
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.