diff --git a/quesma/quesma/search.go b/quesma/quesma/search.go index 8909cdd81..cc3d4f494 100644 --- a/quesma/quesma/search.go +++ b/quesma/quesma/search.go @@ -610,7 +610,7 @@ func (q *QueryRunner) searchWorkerCommon( } func (q *QueryRunner) searchWorker(ctx context.Context, - aggregations []*model.Query, + queries []*model.Query, table *clickhouse.Table, doneCh chan<- AsyncSearchWithError, optAsync *AsyncQuery) (translatedQueryBody [][]byte, resultRows [][]model.QueryResultRow, err error) { @@ -624,7 +624,7 @@ func (q *QueryRunner) searchWorker(ctx context.Context, ctx = dbQueryCtx } - return q.searchWorkerCommon(ctx, aggregations, table) + return q.searchWorkerCommon(ctx, queries, table) } func (q *QueryRunner) Close() {