Skip to content

Commit 6c4a854

Browse files
authored
Merge pull request django-haystack#1608 from erez-o/master
Edited docs for Solr 6.X
2 parents bbcd038 + 156580e commit 6c4a854

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

docs/installing_search_engines.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,11 @@ Solr 4.x+ with a little effort. Installation is relatively simple:
1717
For Solr 6.X::
1818

1919
curl -LO https://archive.apache.org/dist/lucene/solr/x.Y.0/solr-X.Y.0.tgz
20+
mkdir solr
2021
tar -C solr -xf solr-X.Y.0.tgz --strip-components=1
2122
cd solr
22-
./bin/solr create -c tester -n basic_config
23+
./bin/solr start # start solr
24+
./bin/solr create -c tester -n basic_config # create core named 'tester'
2325

2426
By default this will create a core with a managed schema. This setup is dynamic
2527
but not useful for haystack, and we'll need to configure solr to use a static

docs/tutorial.rst

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ the following:
112112
Solr
113113
~~~~
114114

115-
Example::
115+
Example (Solr 4.X)::
116116

117117
HAYSTACK_CONNECTIONS = {
118118
'default': {
@@ -123,6 +123,17 @@ Example::
123123
},
124124
}
125125

126+
Example (Solr 6.X)::
127+
128+
HAYSTACK_CONNECTIONS = {
129+
'default': {
130+
'ENGINE': 'haystack.backends.solr_backend.SolrEngine',
131+
'URL': 'http://127.0.0.1:8983/solr/tester', # Assuming you created a core named 'tester' as described in installing search engines.
132+
'ADMIN_URL': 'http://127.0.0.1:8983/solr/admin/cores'
133+
# ...or for multicore...
134+
# 'URL': 'http://127.0.0.1:8983/solr/mysite',
135+
},
136+
}
126137

127138
Elasticsearch
128139
~~~~~~~~~~~~~
@@ -147,6 +158,7 @@ Example (ElasticSearch 2.x)::
147158
},
148159
}
149160

161+
150162
Whoosh
151163
~~~~~~
152164

0 commit comments

Comments
 (0)