Search based on assets ? #331
-
Would it be possible to build a search POST that filters items based on what assets the items contain? "I want items from collection X which only contain the Y asset." |
Beta Was this translation helpful? Give feedback.
Answered by
StijnCaerts
Feb 10, 2025
Replies: 1 comment
-
It is currently not possible to query items based on their assets because the assets are not indexed. We would have to change the mapping of the assets field. I'm not sure if there is a good way to support this, while avoiding field mapping explosion. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
pedro-cf
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It is currently not possible to query items based on their assets because the assets are not indexed. We would have to change the mapping of the assets field.
stac-fastapi-elasticsearch-opensearch/stac_fastapi/elasticsearch/stac_fastapi/elasticsearch/database_logic.py
Line 116 in 125baff
I'm not sure if there is a good way to support this, while avoiding field mapping explosion.