about summary refs log tree commit diff
path: root/test/python/test_search.py
diff options
context:
space:
mode:
authorAlexander_Kabui <alexanderkabua@gmail.com>2026-10-07 05:50:48 +0300
committerAlexander_Kabui <alexanderkabua@gmail.com>2026-10-07 05:50:48 +0300
commitccfa1b02dc29571ac74602479d1798d17abb9239 (patch)
treea243ae2b54306122e182217dcea59a9b0c7d6d67 /test/python/test_search.py
parent228bedf08631704a2f884d58f9a70d26783fb1a7 (diff)
downloadgenenetwork4-ccfa1b02dc29571ac74602479d1798d17abb9239.tar.gz
src/config.rs (Config): add xapian_db_path and search_engine keys.
New configuration for the native search engine (PORT-DESIGN C1.2 /
AMENDMENT D pre-decided mechanical naming):

- xapian_db_path (env XAPIAN_DB_PATH): directory of the xapian index the
  native engine queries. Mirrors gn3's own key at gn3/api/search.py:295
  so the two services share one convention. Empty default: forwarding
  needs no index; the native engine reports the missing key as a local
  misconfiguration rather than guessing a path.
- search_engine (env SEARCH_ENGINE): "forward" (default, the existing
  gn3 proxy) or "native" (query the xapian index directly). Opt-in, so
  the default behavior of every deployment is unchanged and flipping is
  a one-line config change.

Both follow the existing layering (defaults -> GN4_CONF/GN4_SECRETS ->
environment) exactly like gn3_url / gn3_timeout_secs; unit tests cover
the defaults and the env-over-default layering.

Evidence: ~/spikes/port-execution/logs/c1-2.log (config unit tests 12
passed; full suite EXIT=0, parity floor still 54/54 through the
forwarding engine).
Diffstat (limited to 'test/python/test_search.py')
0 files changed, 0 insertions, 0 deletions