diff --git a/docs/tutorial.rst b/docs/tutorial.rst index 76b038804..6e46bf5a5 100644 --- a/docs/tutorial.rst +++ b/docs/tutorial.rst @@ -127,7 +127,7 @@ Example:: Elasticsearch ~~~~~~~~~~~~~ -Example:: +Example (ElasticSearch 1.x):: HAYSTACK_CONNECTIONS = { 'default': { @@ -137,6 +137,15 @@ Example:: }, } +Example (ElasticSearch 2.x):: + + HAYSTACK_CONNECTIONS = { + 'default': { + 'ENGINE': 'haystack.backends.elasticsearch2_backend.Elasticsearch2SearchEngine', + 'URL': 'http://127.0.0.1:9200/', + 'INDEX_NAME': 'haystack', + }, + } Whoosh ~~~~~~