-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Description
numberReturned
, numberMatched
, and limit
are fields returned at the top level of a Feature API search, which provide metadata about the search request. They are not currently in Commons, only Feature API.
I'd propose adding this to Commons and combining these into a single context object containing search metadata fields, e.g.,
context = {
"limit": 10,
"returned": 10,
"matched": 12
}
The reason for grouping them is that they are conceptually related and allows for adding other fields (e.g., page) without polluting the top level metadata.
We have this as an extension in STAC:
https://github.com/radiantearth/stac-spec/tree/master/api-spec/extensions/context
Example implementation:
https://fn8d3qzbhk.execute-api.us-west-2.amazonaws.com/omega/search