Commit eecb74a2 authored by neelesh thakur's avatar neelesh thakur
Browse files

address the bug

parent 8d26549a
Pipeline #34416 failed with stages
in 36 minutes and 20 seconds
......@@ -242,7 +242,9 @@ abstract class QueryBase {
sourceBuilder.size(QueryUtils.getResultSizeForQuery(request.getLimit()));
sourceBuilder.query(queryBuilder);
sourceBuilder.timeout(REQUEST_TIMEOUT);
sourceBuilder.trackTotalHits(request.isTrackTotalCount());
if (request.isTrackTotalCount()) {
sourceBuilder.trackTotalHits(request.isTrackTotalCount());
}
// set highlighter
if (request.isReturnHighlightedFields()) {
......
......@@ -245,7 +245,9 @@ abstract class QueryBase {
sourceBuilder.size(QueryUtils.getResultSizeForQuery(request.getLimit()));
sourceBuilder.query(queryBuilder);
sourceBuilder.timeout(REQUEST_TIMEOUT);
sourceBuilder.trackTotalHits(request.isTrackTotalCount());
if (request.isTrackTotalCount()) {
sourceBuilder.trackTotalHits(request.isTrackTotalCount());
}
// set highlighter
if (request.isReturnHighlightedFields()) {
......
......@@ -198,7 +198,9 @@ abstract class QueryBase {
sourceBuilder.size(QueryUtils.getResultSizeForQuery(request.getLimit()));
sourceBuilder.query(queryBuilder);
sourceBuilder.timeout(REQUEST_TIMEOUT);
sourceBuilder.trackTotalHits(request.isTrackTotalCount());
if (request.isTrackTotalCount()) {
sourceBuilder.trackTotalHits(request.isTrackTotalCount());
}
// set highlighter
if (request.isReturnHighlightedFields()) {
......
......@@ -248,7 +248,9 @@ abstract class QueryBase {
sourceBuilder.size(QueryUtils.getResultSizeForQuery(request.getLimit()));
sourceBuilder.query(queryBuilder);
sourceBuilder.timeout(requestTimeout);
sourceBuilder.trackTotalHits(request.isTrackTotalCount());
if (request.isTrackTotalCount()) {
sourceBuilder.trackTotalHits(request.isTrackTotalCount());
}
// set highlighter
if (request.isReturnHighlightedFields()) {
......
......@@ -232,7 +232,9 @@ abstract class QueryBase {
sourceBuilder.size(QueryUtils.getResultSizeForQuery(request.getLimit()));
sourceBuilder.query(queryBuilder);
sourceBuilder.timeout(REQUEST_TIMEOUT);
sourceBuilder.trackTotalHits(request.isTrackTotalCount());
if (request.isTrackTotalCount()) {
sourceBuilder.trackTotalHits(request.isTrackTotalCount());
}
// set highlighter
if (request.isReturnHighlightedFields()) {
......
......@@ -258,7 +258,9 @@ abstract class QueryBase {
sourceBuilder.size(QueryUtils.getResultSizeForQuery(request.getLimit()));
sourceBuilder.query(queryBuilder);
sourceBuilder.timeout(REQUEST_TIMEOUT);
sourceBuilder.trackTotalHits(request.isTrackTotalCount());
if (request.isTrackTotalCount()) {
sourceBuilder.trackTotalHits(request.isTrackTotalCount());
}
// set highlighter
if (request.isReturnHighlightedFields()) {
......
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