From 351f41c32e3b57b4781c6e5696c3cd737e95c65f Mon Sep 17 00:00:00 2001 From: Patrick Leary Date: Fri, 15 Dec 2023 10:59:49 -0500 Subject: [PATCH] increase size of some large taxon aggregations --- lib/controllers/v1/observations_controller.js | 4 ++-- lib/models/es_model.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/controllers/v1/observations_controller.js b/lib/controllers/v1/observations_controller.js index 62af3101..4cbb6cd9 100644 --- a/lib/controllers/v1/observations_controller.js +++ b/lib/controllers/v1/observations_controller.js @@ -406,7 +406,7 @@ ObservationsController.taxa = async req => { taxon_ids: { terms: { field: "taxon.id", - size: 500000 + size: 600000 } } } @@ -876,7 +876,7 @@ ObservationsController.taxonomy = async req => { min_species_taxon_ids: { terms: { field: "taxon.id", - size: 500000 + size: 600000 } } } diff --git a/lib/models/es_model.js b/lib/models/es_model.js index 888954d4..cf858740 100644 --- a/lib/models/es_model.js +++ b/lib/models/es_model.js @@ -183,7 +183,7 @@ const ESModel = class ESModel { per_page: 0, no_total_hits: true, aggs: { - ancestries: { terms: { field, size: 500000 } } + ancestries: { terms: { field, size: 600000 } } } } ); const countReq = _.assignIn( { }, req, { query: countQuery } );