archivebox.search.backends

Module Contents

Functions

search_backend_env

Temporarily expose resolved search config through os.environ for backend code.

normalize_search_backend_name

Normalize a backend name for config and plugin lookup.

get_available_backends

Discover search backend plugin modules and cache them in memory.

get_backend

Resolve the configured search backend module.

Data

_search_backends_cache

API

archivebox.search.backends._search_backends_cache: dict | None[source]

None

archivebox.search.backends.search_backend_env(config: dict[str, Any] | None = None, **config_kwargs: Any)[source]

Temporarily expose resolved search config through os.environ for backend code.

archivebox.search.backends.normalize_search_backend_name(backend_name: str | None) str[source]

Normalize a backend name for config and plugin lookup.

archivebox.search.backends.get_available_backends() dict[source]

Discover search backend plugin modules and cache them in memory.

archivebox.search.backends.get_backend(config: dict[str, Any] | None = None, **config_kwargs: Any) Any[source]

Resolve the configured search backend module.