Commit 3e50b2c1 authored by Maciej Hanszke's avatar Maciej Hanszke
Browse files

PR Changes rev2



Signed-off-by: Maciej Hanszke's avatarMaciej <maciej.hanszke@hitachivantara.com>
parent 0015998f
Pipeline #119662 failed
......@@ -82,7 +82,7 @@ public class QueryServiceImpl extends QueryBase implements IQueryService {
queryResponse.setTotalCount(searchResponse.getHits().getTotalHits().value);
if (results != null) {
queryResponse.setAggregations(aggregations);
queryResponse.setResults(queryResponseUtil.getQueryResponseResults(results));
queryResponse.setResults(results);
}
return queryResponse;
}
......
......@@ -158,7 +158,7 @@ public class ScrollQueryServiceImpl extends QueryBase implements IScrollQuerySer
if (results != null) {
return CursorQueryResponse.builder()
.cursor(refreshCursorCache(searchResponse.getScrollId(), dpsHeaders.getUserEmail()))
.results(queryResponseUtil.getQueryResponseResults(results))
.results(results)
.totalCount(searchResponse.getHits().getTotalHits().value)
.build();
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment