From 38b3e939adf7ac7535cdad6e0b8018c82336fb57 Mon Sep 17 00:00:00 2001 From: Marcin Niemyjski Date: Fri, 26 Sep 2025 10:52:12 +0200 Subject: [PATCH 1/2] support nested enabed: false --- .gitignore | 3 +++ .../sfeos_helpers/stac_fastapi/sfeos_helpers/filter/client.py | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index e66d0672..c1213091 100644 --- a/.gitignore +++ b/.gitignore @@ -135,6 +135,9 @@ dmypy.json # Virtualenv venv +# VSCode folder +.vscode + /docs/src/api/* .DS_Store diff --git a/stac_fastapi/sfeos_helpers/stac_fastapi/sfeos_helpers/filter/client.py b/stac_fastapi/sfeos_helpers/stac_fastapi/sfeos_helpers/filter/client.py index 6ad6bf92..98081bfd 100644 --- a/stac_fastapi/sfeos_helpers/stac_fastapi/sfeos_helpers/filter/client.py +++ b/stac_fastapi/sfeos_helpers/stac_fastapi/sfeos_helpers/filter/client.py @@ -72,7 +72,9 @@ async def get_queryables( field_properties = field_def.get("properties") if field_properties: stack.extend( - (f"{field_fqn}.{k}", v) for k, v in field_properties.items() + (f"{field_fqn}.{k}", v) + for k, v in field_properties.items() + if v.get("enabled", True) ) # Skip non-indexed or disabled fields From 2d60a8ea487fd5900f2ef8c2e5d1e3b3055a55e5 Mon Sep 17 00:00:00 2001 From: Marcin Niemyjski Date: Fri, 26 Sep 2025 11:02:09 +0200 Subject: [PATCH 2/2] updated changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 01420b39..79762a00 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ### Fixed +- support of disabled nested attributes in the properties dictionary. [#474](https://github.com/stac-utils/stac-fastapi-elasticsearch-opensearch/pull/474) ## [v6.4.0] - 2025-09-24