A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/stac-utils/stac-fastapi-elasticsearch-opensearch below:

stac-utils/stac-fastapi-elasticsearch-opensearch: Elasticsearch backend for stac-fastapi with Opensearch support.

stac-fastapi-elasticsearch-opensearch

Jump to: Project Introduction | Quick Start | Table of Contents

The following organizations have contributed time and/or funding to support the development of this project:

Project Introduction - What is SFEOS?

SFEOS (stac-fastapi-elasticsearch-opensearch) is a high-performance, scalable API implementation for serving SpatioTemporal Asset Catalog (STAC) data - an enhanced GeoJSON format designed specifically for geospatial assets like satellite imagery, aerial photography, and other Earth observation data. This project enables organizations to:

This implementation builds on the STAC-FastAPI framework, providing a production-ready solution specifically optimized for Elasticsearch and OpenSearch databases. It's ideal for organizations managing large geospatial data catalogs who need efficient discovery and access capabilities through standardized APIs.

Common Deployment Patterns

stac-fastapi-elasticsearch-opensearch can be deployed in several ways depending on your needs:

The implementation is flexible and can scale from small local deployments to large production environments serving millions of geospatial assets.

This project is built on the following technologies: STAC, stac-fastapi, FastAPI, Elasticsearch, Python, OpenSearch

Documentation & Resources

This project is organized into several packages, each with a specific purpose:

The /examples directory contains several useful examples and reference implementations:

These examples provide practical reference implementations for various deployment scenarios and features.

This section helps you get up and running with stac-fastapi-elasticsearch-opensearch quickly.

Important Note: Starting with version 4.0.0a1, package names have changed from using periods (e.g., stac-fastapi.core) to using hyphens (e.g., stac-fastapi-core) to comply with PEP 625. The internal package structure uses underscores, but users should install with hyphens as shown above. Please update your requirements files accordingly.

There are two main ways to run the API locally:

Using Pre-built Docker Images

You can customize additional settings in your .env file:

Variable Description Default Required ES_HOST Hostname for external Elasticsearch/OpenSearch. localhost Optional ES_PORT Port for Elasticsearch/OpenSearch. 9200 (ES) / 9202 (OS) Optional ES_USE_SSL Use SSL for connecting to Elasticsearch/OpenSearch. true Optional ES_VERIFY_CERTS Verify SSL certificates when connecting. true Optional ES_API_KEY API Key for external Elasticsearch/OpenSearch. N/A Optional ES_TIMEOUT Client timeout for Elasticsearch/OpenSearch. DB client default Optional STAC_FASTAPI_TITLE Title of the API in the documentation. stac-fastapi-<backend> Optional STAC_FASTAPI_DESCRIPTION Description of the API in the documentation. N/A Optional STAC_FASTAPI_VERSION API version. 2.1 Optional STAC_FASTAPI_LANDING_PAGE_ID Landing page ID stac-fastapi Optional APP_HOST Server bind address. 0.0.0.0 Optional APP_PORT Server port. 8000 Optional ENVIRONMENT Runtime environment. local Optional WEB_CONCURRENCY Number of worker processes. 10 Optional RELOAD Enable auto-reload for development. true Optional STAC_FASTAPI_RATE_LIMIT API rate limit per client. 200/minute Optional BACKEND Tests-related variable elasticsearch or opensearch based on the backend Optional ELASTICSEARCH_VERSION Version of Elasticsearch to use. 8.11.0 Optional OPENSEARCH_VERSION OpenSearch version 2.11.1 Optional ENABLE_DIRECT_RESPONSE Enable direct response for maximum performance (disables all FastAPI dependencies, including authentication, custom status codes, and validation) false Optional RAISE_ON_BULK_ERROR Controls whether bulk insert operations raise exceptions on errors. If set to true, the operation will stop and raise an exception when an error occurs. If set to false, errors will be logged, and the operation will continue. Note: STAC Item and ItemCollection validation errors will always raise, regardless of this flag. false Optional DATABASE_REFRESH Controls whether database operations refresh the index immediately after changes. If set to true, changes will be immediately searchable. If set to false, changes may not be immediately visible but can improve performance for bulk operations. If set to wait_for, changes will wait for the next refresh cycle to become visible. false Optional ENABLE_TRANSACTIONS_EXTENSIONS Enables or disables the Transactions and Bulk Transactions API extensions. If set to false, the POST /collections route and related transaction endpoints (including bulk transaction operations) will be unavailable in the API. This is useful for deployments where mutating the catalog via the API should be prevented. true Optional

Note

The variables ES_HOST, ES_PORT, ES_USE_SSL, ES_VERIFY_CERTS and ES_TIMEOUT apply to both Elasticsearch and OpenSearch backends, so there is no need to rename the key names to OS_ even if you're using OpenSearch.

Ingesting Sample Data CLI Tool Managing Elasticsearch Indices

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4