add sort values as part of the response per search hit
This commit is contained in:
parent
37af7f5aef
commit
8b19d353c1
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue