archivebox.search.config
Module Contents
Functions
Choose the default search mode from config and discovered backends. |
|
Normalize a user-supplied search mode or fall back to the default. |
|
Return the mode portion of a normalized search mode. |
|
Return the backend portion of a backend-qualified search mode. |
|
Build search mode choices for admin and public selectors. |
Data
API
- archivebox.search.config.get_default_search_mode(config: dict[str, Any] | None = None, **config_kwargs: Any) str[source]
Choose the default search mode from config and discovered backends.
- archivebox.search.config.get_search_mode(search_mode: str | None, config: dict[str, Any] | None = None, **config_kwargs: Any) str[source]
Normalize a user-supplied search mode or fall back to the default.
- archivebox.search.config.get_search_mode_base(search_mode: str | None, config: dict[str, Any] | None = None, **config_kwargs: Any) str[source]
Return the mode portion of a normalized search mode.