Skip to content

apply filter get 0 features return #307

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

Open
zhudayong1987 opened this issue Oct 30, 2024 · 2 comments
Open

apply filter get 0 features return #307

zhudayong1987 opened this issue Oct 30, 2024 · 2 comments

Comments

@zhudayong1987
Copy link

Describe the bug
If filter is eo:cloud_cover > 95, the return result is empty. However, if query is {"eo:cloud_cover": {"gt": 95}}, the result is normal

@jamesfisher-geo
Copy link
Collaborator

Hi, could you provide example queries so we can reproduce your issue?

@MathewNWSH
Copy link

hey @jamesfisher-geo ,

We also encountered this issue. For example:

The following doesn't work in STAC FastAPI OS:

***/search?collections=sentinel-1-mosaic&filter=product:type=%27S1SAR_L3_DH_MCM%27

Even setting the filter-lang=cql2-text doesn't help, even though it's supposed to be the default query language.

Only cql2-json works:

***/search?collections=sentinel-1-mosaic&query=%7B%22product:type%22:%20%7B%22eq%22:%20%22S1SAR_L3_DH_MCM%22%7D%7D

Best,
Marcin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants