Elasticsearch backend for stac-fastapi.
WIP This backend does not have any production deployments yet, so use the pgstac backend instead if that's what you need.
For changes, see the Changelog.
To install the classes in your local Python env, run:
pip install -e 'stac_fastapi/elasticsearch[dev]'Install pre-commit.
Prior to commit, run:
pre-commit run --all-files`docker-compose builddocker-compose upBy default, docker-compose uses Elasticsearch 7.x. If you wish to use a different version, put the following in a
file named .env in the same directory you run docker-compose from:
ELASTICSEARCH_VERSION=7.12.0docker-compose -f docker-compose.setup.yml run --rm keystore
docker-compose -f docker-compose.setup.yml run --rm certsTo create a new Collection:
curl -X "POST" "http://localhost:8080/collections" \
-H 'Content-Type: application/json; charset=utf-8' \
-d $'{
"id": "my_collection"
}'Note: this "Collections Transaction" behavior is not part of the STAC API, but may be soon.
make testmake ingestMappings apply to search index, not source.