Jump to >

reviewboard.search.search_backends.registry

The search engine backend registry.

class SearchBackendRegistry[source]

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.

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

property on_the_fly_indexing_enabled[source]

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

property search_enabled[source]

Whether or not search is enabled.

property results_per_page[source]

The number of search results per page.

property current_backend[source]

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