Jump to >

reviewboard.search.search_backends.registry

The search engine backend registry.

class SearchBackendRegistry[source]

Bases: reviewboard.registries.registry.Registry

A registry for search engines backends.

Extensions can add support for additional search engine backends.

See the registry documentation for information on how registries work.

lookup_attrs = [u'search_backend_id'][source]
get_search_backend(search_backend_id)[source]

Return the search backend with the specified ID.

Parameters:search_backend_id (unicode) – The unique identifier of the search engine.
Returns:The search engine class, if it could be found. Otherwise, None.
Return type:reviewboard.search.search_engines.base.SearchBackend
get_defaults()[source]

Return the default search backends.

Returns:The default search backends to use.
Return type:list of reviewboard.search.search_backends.base.SearchBackend
on_the_fly_indexing_enabled[source]

Whether or not on-the-fly indexing is enabled.

search_enabled[source]

Whether or not search is enabled.

results_per_page[source]

The number of search results per page.

current_backend[source]

The current search backend, or None if search is disabled.