From 2e0652eb0464011924c4f454c2d8a93889e1e8fb Mon Sep 17 00:00:00 2001 From: Mo Date: Thu, 6 Feb 2025 20:17:21 +0100 Subject: [PATCH] fixed the issue with unstable facet.fields --- freva-rest/src/freva_rest/databrowser_api/core.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/freva-rest/src/freva_rest/databrowser_api/core.py b/freva-rest/src/freva_rest/databrowser_api/core.py index 8ac28a4..9c3705f 100644 --- a/freva-rest/src/freva_rest/databrowser_api/core.py +++ b/freva-rest/src/freva_rest/databrowser_api/core.py @@ -2113,8 +2113,8 @@ def finalize_stac_collection(self) -> None: async def validate_stac(self) -> Tuple[int, int]: """Validate STAC API availability and get result counts.""" self._set_catalogue_queries() - self.query["facet.field"] += ["time", "bbox"] - self.query["fl"] += ["time", "bbox"] + self.query["facet.field"] = self._config.solr_fields + self.query["fl"] = [self.uniq_key] + self._config.solr_fields async with self._session_get() as res: search_status, search = res total_count = int(search.get("response", {}).get("numFound", 0))