Documentation

Configuration

Environment variables and flags of the geolith-search binary.

Every setting is an environment variable and also a command-line flag (--database-url, --listen, and so on).

VariableDefaultMeaning
DATABASE_URLrequiredPostgres connection string.
LISTEN127.0.0.1:4000Address and port to listen on.
POOL_SIZE16Database connections in the pool. All are opened and warmed at startup.
IMPORTANCE_WEIGHT10Weight of importance (0–1) against the BM25 text score.
RANKED_TIMEOUT_MS250Budget for an importance-ranked query.
FOCUS_TIMEOUT_MS1000Budget shared by all focus-box queries of one request.
FALLBACK_TIMEOUT_MS2000Budget for the text-only fallback query.
RUST_LOGgeolith_search=info,tower_http=infoLog filter.
Info

Postgres must allow at least POOL_SIZE connections for the server, plus any you need for tests and maintenance.