Open agstephens opened 2 years ago
To select a subset of fields you can add the source API to the queryset in stac-fastapi-elasticsearch, with the .source
class method from elasticsearch_dsl.
However this raises a STAC error at the API level, the get around this the source must include datetime properties, the end result will give you what you want + datetimes + relational links.
ACTIONS
More complex queries are possible
Use "filter" kwarg.
NOTE: we will not expose the dictionary-type "filter" examples. We will only demonstrate the "cql2-text" approach.
NOTE: "filter" dictionaries are provided so that "POST" queries will work (with JSON payload).
Users might want to build more complex queries, combining:
Example:
How does "filter" interact with facet kwargs?
Default behaviour should be:
Note about pagination
The pystac client abstracts away pagination by returning a generator object.
ESGF Search API
Current docs: https://esgf.github.io/esg-search/ESGF_Search_RESTful_API.html
The following keywords are currently used by the system - see later for usage examples:
doctype
datetime
instead