stac-utils / stac-fastapi-elasticsearch-opensearch

Elasticsearch backend for stac-fastapi with Opensearch support.
https://stac-utils.github.io/stac-fastapi-elasticsearch-opensearch
MIT License
31 stars 15 forks source link

Remove all elasticsearch specific language from core #195

Closed jonhealy1 closed 8 months ago

jonhealy1 commented 9 months ago

Removing es-specific language from core.py and the core module will make it easier for other databases to plug into the infrastructure.

Example: In the get_all_collections function '_source' is referenced:

return Collections( collections=[ self.collection_serializer.db_to_stac(c["_source"], base_url=base_url) for c in hits ], links=links, )

This should be removed from the response that comes via database_logic.py in both of the backends.