Skip to content

Commit

Permalink
fixed the issue with unstable facet.fields
Browse files Browse the repository at this point in the history
  • Loading branch information
mo-dkrz committed Feb 6, 2025
1 parent 5f09aa0 commit 2e0652e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions freva-rest/src/freva_rest/databrowser_api/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 2e0652e

Please sign in to comment.