From 819fcfcf732233833f8149f50c610436d31a813e Mon Sep 17 00:00:00 2001 From: Matthieu Benoist <mbenoist@ausy-group.com> Date: Fri, 5 Feb 2021 12:01:34 +0100 Subject: [PATCH] Swiching from sorting type does not reset the aggregation of results, showing bad value due to the switch between order by date for an empty research and by pertinence for others. --- src/app/datasets/services/dataset-research.service.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/app/datasets/services/dataset-research.service.ts b/src/app/datasets/services/dataset-research.service.ts index ac475fa6..7d997b67 100644 --- a/src/app/datasets/services/dataset-research.service.ts +++ b/src/app/datasets/services/dataset-research.service.ts @@ -526,7 +526,6 @@ export class DatasetResearchService { } sortChanged(option: ISortOption) { - this._elasticsearchOptions.shouldAggregateResultCount = false; this._elasticsearchOptions.sortOptions = option; this._researchUrlService.setSortParameter(option); -- GitLab