Skip to content

propose adding context object for search metadata #82

@matthewhanson

Description

@matthewhanson

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions