add sort values as part of the response per search hit

This commit is contained in:
kimchy 2010-08-08 18:21:34 +03:00
parent 37af7f5aef
commit 8b19d353c1
1 changed files with 1 additions and 1 deletions

View File

@ -291,7 +291,7 @@ public class InternalSearchHit implements SearchHit {
builder.endObject(); builder.endObject();
} }
if (sortValues != null && sortValues.length > 0) { if (sortValues != null && sortValues.length > 0) {
builder.startArray("sort_values"); builder.startArray("sort");
for (Object sortValue : sortValues) { for (Object sortValue : sortValues) {
builder.value(sortValue); builder.value(sortValue);
} }