reviewboard.search.search_backends.whoosh¶
A backend for the Whoosh search engine.
- class WhooshConfigForm(*args, **kwargs)¶
Bases:
SearchBackendForm
A form for configuring the Whoosh search backend.
- clean_search_index_file()¶
Clear the search_index_file field.
This ensures the value is an absolute path and is writable.
- __annotations__ = {}¶
- declared_fields = {'search_index_file': <django.forms.fields.CharField object>}¶
- class WhooshBackend¶
Bases:
SearchBackend
The Whoosh search backend.
- search_backend_id = 'whoosh'¶
The search engine’s unique identifier.
- name = 'Whoosh'¶
The human-readable name for the search engine.
- haystack_backend_name = 'haystack.backends.whoosh_backend.WhooshEngine'¶
The name of the Haystack search engine backend.
- config_form_class¶
alias of
WhooshConfigForm
- form_field_map = {'search_index_file': 'PATH'}¶
A mapping of search engine settings to form fields.
- property default_settings¶
The default settings for the backend.
This is dynamic, in order to account for a change to
SITE_DATA_DIR
. In production, this value shouldn’t change, but it does in unit tests.
- __annotations__ = {}¶