Skip to content

Commit

Permalink
Merge pull request #1483 from barseghyanartur/patch-1
Browse files Browse the repository at this point in the history
Update tutorial.rst
  • Loading branch information
acdha committed Feb 8, 2017
2 parents 201d27f + d2f3ef3 commit 0e86d1d
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion docs/tutorial.rst
Expand Up @@ -127,7 +127,7 @@ Example::
Elasticsearch
~~~~~~~~~~~~~

Example::
Example (ElasticSearch 1.x)::

HAYSTACK_CONNECTIONS = {
'default': {
Expand All @@ -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
~~~~~~
Expand Down

0 comments on commit 0e86d1d

Please sign in to comment.