1
0
mirror of https://github.com/pirate/ArchiveBox.git synced 2025-08-19 12:51:49 +02:00

totally ignore sonic unless its the selected search backend

This commit is contained in:
Nick Sweeting
2024-10-09 19:12:47 -07:00
parent 8ce7313325
commit 5e2dfb5baa

View File

@@ -120,7 +120,7 @@ class SonicSearchPlugin(BasePlugin):
hooks: List[InstanceOf[BaseHook]] = [
SONIC_CONFIG,
*([SONIC_BINARY] if (SEARCH_BACKEND_CONFIG.SEARCH_BACKEND_ENGINE == 'sonic' or SONIC_LIB) else []),
*([SONIC_BINARY] if (SEARCH_BACKEND_CONFIG.SEARCH_BACKEND_ENGINE == 'sonic') else []),
SONIC_SEARCH_BACKEND,
]