.oO SearXNG Developer Documentation Oo.
|
Functions | |
init (_engine_settings) | |
search (query, _params) | |
search_keys (query) | |
Variables | |
str | engine_type = 'offline' |
str | host = '127.0.0.1' |
int | port = 6379 |
str | password = '' |
int | db = 0 |
bool | paging = False |
str | result_template = 'key-value.html' |
bool | exact_match_only = True |
_redis_client = None | |
Redis is an open source (BSD licensed), in-memory data structure (key value based) store. Before configuring the ``redis_server`` engine, you must install the dependency redis_. Configuration ============= Select a database to search in and set its index in the option ``db``. You can either look for exact matches or use partial keywords to find what you are looking for by configuring ``exact_match_only``. Example ======= Below is an example configuration: .. code:: yaml # Required dependency: redis - name: myredis shortcut : rds engine: redis_server exact_match_only: false host: '127.0.0.1' port: 6379 enable_http: true password: '' db: 0 Implementations ===============
searx.engines.redis_server.init | ( | _engine_settings | ) |
Definition at line 55 of file redis_server.py.
searx.engines.redis_server.search | ( | query, | |
_params ) |
Definition at line 66 of file redis_server.py.
References searx.format, and searx.engines.redis_server.search_keys().
searx.engines.redis_server.search_keys | ( | query | ) |
Definition at line 89 of file redis_server.py.
References searx.format.
Referenced by searx.engines.redis_server.search().
|
protected |
Definition at line 52 of file redis_server.py.
int searx.engines.redis_server.db = 0 |
Definition at line 45 of file redis_server.py.
str searx.engines.redis_server.engine_type = 'offline' |
Definition at line 39 of file redis_server.py.
bool searx.engines.redis_server.exact_match_only = True |
Definition at line 50 of file redis_server.py.
str searx.engines.redis_server.host = '127.0.0.1' |
Definition at line 42 of file redis_server.py.
bool searx.engines.redis_server.paging = False |
Definition at line 48 of file redis_server.py.
str searx.engines.redis_server.password = '' |
Definition at line 44 of file redis_server.py.
int searx.engines.redis_server.port = 6379 |
Definition at line 43 of file redis_server.py.
str searx.engines.redis_server.result_template = 'key-value.html' |
Definition at line 49 of file redis_server.py.