Not getting score

I am getting score for both queries, but not getting
"max_score" .......?

On Jan 31, 7:54 pm, Shay Banon shay.ba...@elasticsearch.com wrote:

You need to add the score as another sorting field, and then you will get the score back.

On Monday, January 31, 2011 at 1:45 PM, Arulkumar wrote:

Hi,

I am searching query with sort field means, i am getting the
result with max score as null. If i didn't specify sort field means, i
am getting max score value....

I have mentioned the queries here...

curl -XGET 'http://localhost:9200/dbtest/data/_search'-d
' { "sort" : [ {"_score" : {"reverse" :false } }
] ,"query" : { "bool" : { "should" : [{ "prefix" : { "field1":
"print" } } ] } }, "from" : 0, "size" : 20, "explain"
: false,"fields":["field1","field2"] }'

curl -XGET 'http://localhost:9200/dbtest/data/_search'-d
' {"query" : { "bool" : { "should" : [{ "prefix" : { "field1":
"print" } } ] } }, "from" : 0, "size" : 20, "explain"
: false,"fields":["field1","field2"] }'

Currently i am using ES version 0.14.3...........