Jump to >

reviewboard.search.search_backends.elasticsearch

A backend for the Elasticsearch search engine.

class ElasticsearchConfigForm(*args, **kwargs)[source]

Bases: reviewboard.search.search_backends.base.SearchBackendForm

A form for configuring the Elasticsearch search backend.

declared_fields = {'index_name': <django.forms.fields.CharField object>, 'url': <django.forms.fields.URLField object>}[source]
class ElasticsearchBackend[source]

Bases: reviewboard.search.search_backends.base.SearchBackend

A search backend for integrating with Elasticsearch

search_backend_id = u'elasticsearch'[source]
name = u'Elasticsearch'[source]
haystack_backend_name = u'haystack.backends.elasticsearch_backend.ElasticsearchSearchEngine'[source]
default_settings = {u'INDEX_NAME': u'reviewboard', u'URL': u'http://127.0.0.1:9200/'}[source]
config_form_class[source]

alias of ElasticsearchConfigForm

form_field_map = {u'index_name': u'INDEX_NAME', u'url': u'URL'}[source]
validate()[source]

Ensure that the elasticsearch Python module is installed.

Raises:django.core.exceptions.ValidationError – Raised if the elasticsearch module is not installed.