Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sorting collection search results using "item property paths" instead of "collection property paths" ? #431

Open
ycespb opened this issue Apr 19, 2024 · 1 comment
Labels
bug Something isn't working search upstream

Comments

@ycespb
Copy link

ycespb commented Apr 19, 2024

StacBrowser sends sorting requests to the server (for collection search) using property names such as "properties.title" while these paths do not exist in the STAC JSON representation of the collection as "properties" does not exist. The path "title" does exist. Similarly, properties.datetime is used as sorting key for collections. Should "extent/temporal/interval" not be used instead in the requests to sort by date ? Maybe the explanation in https://github.com/stac-api-extensions/collection-search ("it works as it does for Items") could be more explicit if the intention is to use the same paths even when they do not really exist in the response...

@m-mohr
Copy link
Collaborator

m-mohr commented Apr 19, 2024

Oh yeah, good point. This need to be worked out better in the Collection Search spec and then be adapted in STAC Browser, too.

@m-mohr m-mohr added bug Something isn't working upstream search labels Apr 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working search upstream
Projects
None yet
Development

No branches or pull requests

2 participants