openslides-search-service

module
v0.0.0-...-1536453 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 27, 2026 License: MIT

README

openslides-search-service

The OpenSlides search service.

Configuration:

Env variable Default value Meaning
OPENSLIDES_LOG_LEVEL info Log level. Can be panic, fatal, error, warn, info, debug, trace
SEARCH_PORT 9050 Port the service listens on.
SEARCH_LISTEN_HOST `` Host the service is bound to.
SEARCH_MAX_QUEUED 20 Number of waiting queries.
SEARCH_INDEX_AGE 100ms Accepted age of internal index.
SEARCH_INDEX_FILE search.bleve Filename of the internal index.
SEARCH_INDEX_BATCH 4096 Batch size of the index when its build or re-generated.
SEARCH_INDEX_UPDATE_INTERVAL 120s Poll intervall to update the index without queries.
MODELS_YML_FILE models.yml File path of the used models.
SEARCH_YML_FILE search.yml Fields of the models to be searched.
DATABASE_NAME openslides Name of the database.
DATABASE_USER openslides Database user.
DATABASE_HOST localhost Host of the database.
DATABASE_PORT 5432 Port of the database.
DATABASE_PASSWORD_FILE /run/secrets/postgres_password Password file of the database user.
RESTRICTER_URL http://autoupdate:9012/internal/autoupdate URL to use the restricter from the auto-update-service to filter the query results.

Directories

Path Synopsis
cmd
searchd command
Package main implements the daemon of the search service.
Package main implements the daemon of the search service.
pkg
config
Package config implements the configuration of the search service.
Package config implements the configuration of the search service.
meta
Package meta implements handling of the meta data model.
Package meta implements handling of the meta data model.
oserror
Package oserror handles errors.
Package oserror handles errors.
search
Package search implements the searching in a given database.
Package search implements the searching in a given database.
web
Package web exposes a web api.
Package web exposes a web api.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL