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....
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....
Yea, in this case, max_score will not be returned. This is done since it incurs a cost when just wanting to sort on other fields, but might be enabled, I need to check... .
On Tuesday, February 1, 2011 at 6:29 AM, Arulkumar wrote:
I am getting score for both queries, but not getting
"max_score" .......?
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....
Yea, in this case, max_score will not be returned. This is done since it incurs a cost when just wanting to sort on other fields, but might be enabled, I need to check... .
On Tuesday, February 1, 2011 at 6:29 AM, Arulkumar wrote:
I am getting score for both queries, but not getting
"max_score" .......?
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....
On Tuesday, February 1, 2011 at 11:49 AM, Shay Banon wrote:
Yea, in this case, max_score will not be returned. This is done since it incurs a cost when just wanting to sort on other fields, but might be enabled, I need to check... .
On Tuesday, February 1, 2011 at 6:29 AM, Arulkumar wrote:
I am getting score for both queries, but not getting
"max_score" .......?
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....
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.