File tree Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -17,9 +17,11 @@ Solr 4.x+ with a little effort. Installation is relatively simple:
17
17
For Solr 6.X::
18
18
19
19
curl -LO https://archive.apache.org/dist/lucene/solr/x.Y.0/solr-X.Y.0.tgz
20
+ mkdir solr
20
21
tar -C solr -xf solr-X.Y.0.tgz --strip-components=1
21
22
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'
23
25
24
26
By default this will create a core with a managed schema. This setup is dynamic
25
27
but not useful for haystack, and we'll need to configure solr to use a static
Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ the following:
112
112
Solr
113
113
~~~~
114
114
115
- Example::
115
+ Example (Solr 4.X) ::
116
116
117
117
HAYSTACK_CONNECTIONS = {
118
118
'default': {
@@ -123,6 +123,17 @@ Example::
123
123
},
124
124
}
125
125
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
+ }
126
137
127
138
Elasticsearch
128
139
~~~~~~~~~~~~~
@@ -147,6 +158,7 @@ Example (ElasticSearch 2.x)::
147
158
},
148
159
}
149
160
161
+
150
162
Whoosh
151
163
~~~~~~
152
164
You can’t perform that action at this time.
0 commit comments