Skip to content

Commit 49eacb3

Browse files
authored
Merge pull request django-haystack#1688 from Asyncinfo/patch-3
Update tutorial.rst
2 parents 802b0f6 + aaf7944 commit 49eacb3

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

docs/tutorial.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,16 @@ Example (ElasticSearch 2.x)::
157157
'INDEX_NAME': 'haystack',
158158
},
159159
}
160+
161+
Example (ElasticSearch 5.x)::
160162

163+
HAYSTACK_CONNECTIONS = {
164+
'default': {
165+
'ENGINE': 'haystack.backends.elasticsearch5_backend.Elasticsearch5SearchEngine',
166+
'URL': 'http://127.0.0.1:9200/',
167+
'INDEX_NAME': 'haystack',
168+
},
169+
}
161170

162171
Whoosh
163172
~~~~~~

0 commit comments

Comments
 (0)