You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{
"detail": "Error with cql2_json filter: Q() can only accept dict with a single query ({\"match\": {...}}). Instead it got ({})"
}
GET http://localhost:8082/search?filter=sentinel:data_coverage > 50 OR landsat:coverage_percent < 10 OR (sentinel:data_coverage IS NULL AND landsat:coverage_percent IS NULL)
{
"detail": "Error with cql2_json filter: Q() can only accept dict with a single query ({\"match\": {...}}). Instead it got ({})"
}
Expected behavior
valid ItemCollection
The text was updated successfully, but these errors were encountered:
Describe the bug
IS NULL is included in the filter extension logic. However, I cannot get it to work with cql2-json or cql2-text.
stac-fastapi-elasticsearch-opensearch/stac_fastapi/core/stac_fastapi/core/extensions/filter.py
Line 74 in 2d6cb4d
To Reproduce
Steps to reproduce the behavior:
docker compose up app-opensearch
ordocker compose up app-elasticsearch
python3 data_loader.py --base-url http://localhost:8082
POST
http://localhost:8082/search
body
GET
http://localhost:8082/search?filter=sentinel:data_coverage > 50 OR landsat:coverage_percent < 10 OR (sentinel:data_coverage IS NULL AND landsat:coverage_percent IS NULL)
Expected behavior
valid ItemCollection
The text was updated successfully, but these errors were encountered: