Skip to content

How to sort search serults #321

Answered by StijnCaerts
piust asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @piust, I had a look at your example and there are a few things that might need to be fixed:

  • properties.published is not a default field in STAC. You can take a look at the created/updated field
  • the sortby field should be an array of sort keys

I modified your example into a working query with sorting:

{
  "filter": {
    "op": "and",
    "args": [
      {
        "op": "and",
        "args": [
          {
            "op": "=",
            "args": [
              {
                "property": "properties.constellation"
              },
              "sentinel-2"
            ]
          }
        ]
      },
      {
        "op": ">=",
        "args": [
          {
            "property"

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by piust
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy