annotations.elasticsearch_backends module¶
-
class
annotations.elasticsearch_backends.
JHBElasticsearch2SearchBackend
(connection_alias, **connection_options)[source]¶ Bases:
haystack.backends.elasticsearch2_backend.Elasticsearch2SearchBackend
-
DEFAULT_SETTINGS
= {'settings': {'analysis': {'filter': {'haystack_edgengram': {'max_gram': 15, 'type': 'edgeNGram', 'min_gram': 3}, 'haystack_ngram': {'max_gram': 15, 'type': 'nGram', 'min_gram': 3}}, 'tokenizer': {'haystack_ngram_tokenizer': {'max_gram': 15, 'type': 'nGram', 'min_gram': 3}, 'haystack_edgengram_tokenizer': {'max_gram': 15, 'type': 'edgeNGram', 'side': 'front', 'min_gram': 3}}, 'analyzer': {'edgengram_analyzer': {'filter': ['haystack_edgengram', 'lowercase'], 'type': 'custom', 'tokenizer': 'standard'}, 'ngram_analyzer': {'filter': ['haystack_ngram', 'lowercase'], 'type': 'custom', 'tokenizer': 'standard'}}}}}¶
-
RESERVED_CHARACTERS
= ('\\', '+', '-', '&&', '||', '!', '(', ')', '{', '}', '[', ']', '^', '"', '~', ':', '/')¶
-
-
class
annotations.elasticsearch_backends.
JHBElasticsearch2SearchEngine
(using=None)[source]¶ Bases:
haystack.backends.elasticsearch2_backend.Elasticsearch2SearchEngine
-
backend
¶ alias of
JHBElasticsearch2SearchBackend
-