From 8b19d353c14104f031d203937e9bc1f0183abac1 Mon Sep 17 00:00:00 2001 From: kimchy Date: Sun, 8 Aug 2010 18:21:34 +0300 Subject: [PATCH] add sort values as part of the response per search hit --- .../org/elasticsearch/search/internal/InternalSearchHit.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/elasticsearch/src/main/java/org/elasticsearch/search/internal/InternalSearchHit.java b/modules/elasticsearch/src/main/java/org/elasticsearch/search/internal/InternalSearchHit.java index d3837b4e0d2..0ff12a68abc 100644 --- a/modules/elasticsearch/src/main/java/org/elasticsearch/search/internal/InternalSearchHit.java +++ b/modules/elasticsearch/src/main/java/org/elasticsearch/search/internal/InternalSearchHit.java @@ -291,7 +291,7 @@ public class InternalSearchHit implements SearchHit { builder.endObject(); } if (sortValues != null && sortValues.length > 0) { - builder.startArray("sort_values"); + builder.startArray("sort"); for (Object sortValue : sortValues) { builder.value(sortValue); }