Skip to content

Conversation

@MathewNWSH
Copy link
Contributor

Description:
added EXCLUDED_FROM_QUERYABLES environment variable to allow excluding specific fields from the queryables endpoint and filtering, even if those are indexed. Supports comma-separated list of fully qualified field names (e.g., properties.auth:schemes,properties.storage:schemes).

PR Checklist:

  • Code is formatted and linted (run pre-commit run --all-files)
  • Tests pass (run make test)
  • Documentation has been updated to reflect changes, if applicable
  • Changes are added to the changelog

@MathewNWSH
Copy link
Contributor Author

Hey @jonhealy1 could you please take a look?

- Excluded fields will not appear in the queryables response
- Excluded fields and their nested children will be skipped during field traversal
- Both the field itself and any nested properties will be excluded

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you move this section to the main Readme and add a link to the section in the Table of Contents?

Copy link
Collaborator

@jonhealy1 jonhealy1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks really good. Can you add a test?

CHANGELOG.md Outdated

- CloudFerro logo to sponsors and supporters list [#485](https://github.com/stac-utils/stac-fastapi-elasticsearch-opensearch/pull/485)
- Latest news section to README [#485](https://github.com/stac-utils/stac-fastapi-elasticsearch-opensearch/pull/485)
- Environment variable `EXCLUDED_FROM_QUERYABLES` to exclude specific fields from queryables endpoint and filtering. Supports comma-separated list of fully qualified field names (e.g., `properties.auth:schemes,properties.storage:schemes`)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here if you can add the link with the pr number

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I fixed it when i fixed the conflict in the changelog

@jonhealy1
Copy link
Collaborator

from .client import EsAsyncBaseFiltersClient /opt/hostedtoolcache/Python/3.9.23/x64/lib/python3.9/site-packages/stac_fastapi/sfeos_helpers/filter/client.py:17: in <module> class EsAsyncBaseFiltersClient(AsyncBaseFiltersClient): /opt/hostedtoolcache/Python/3.9.23/x64/lib/python3.9/site-packages/stac_fastapi/sfeos_helpers/filter/client.py:42: in EsAsyncBaseFiltersClient collection_id: str | None = None, E TypeError: unsupported operand type(s) for |: 'type' and 'NoneType'

Copy link
Collaborator

@jonhealy1 jonhealy1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@MathewNWSH Nice work thanks!

@jonhealy1 jonhealy1 merged commit e15f45b into stac-utils:main Oct 22, 2025
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants