1- Solr (module for Omeka S)
1+ Solr (module for Omeka S) [ archived ]
22=========================
33
44[ ![ Build Status] ( https://travis-ci.org/biblibre/omeka-s-module-Solr.svg?branch=master )] ( https://travis-ci.org/biblibre/omeka-s-module-Solr )
55
66[ Solr] is a module for [ Omeka S] that provides a [ Search] adapter for [ Apache Solr] .
77
8+ ** IMPORTANT**
9+ This fork of the module [ Solr of BibLibre] is deprecated and replaced by the
10+ module [ Search adapter for Solr] in order to manage improvements.
11+
812
913Installation
1014------------
@@ -44,7 +48,7 @@ Quick start
4448 3 . This default node can be customized if needed, for example to force the
4549 queries to be a "OR" query (default) or a "AND" query (more common).
46503 . In Search admin
47- 1 . Create an index
51+ 1 . Create an index
4852 1 . Add a new index with name ` Default ` or whatever you want, using the
4953 Solr adapter and the ` default ` node.
5054 2 . Launch the indexation by clicking on the "reindex" button (two arrows
@@ -109,15 +113,15 @@ it via `dpkg`. The process is the same for Red Hat and derivatives.
109113The module works with Solr 5.5.5 (Java [ 1.7 u55] ) and Solr 6.6.6 (Java [ 1.8] ), but
110114not Solr 7.2.1 (indexing works, not the search).
111115
112- ``` bash
116+ ``` sh
113117cd /opt
114118# Check if java is installed with the good version.
115119java -version
116120# If not installed, install it (uncomment)
117121# sudo apt install default-jre
118- # The certificate is currently obsolete on Apache server, so don’t check it .
122+ # If the certificate is obsolete on Apache server, add --no- check-certificate .
119123# To install another version, just change all next version numbers below.
120- wget --no-check-certificate https://www.eu .apache.org/dist/lucene/solr/6.6.6/solr-6.6.6.tgz
124+ wget https://archive .apache.org/dist/lucene/solr/6.6.6/solr-6.6.6.tgz
121125# Extract the install script
122126tar zxvf solr-6.6.6.tgz solr-6.6.6/bin/install_solr_service.sh --strip-components=2
123127# Launch the install script (by default, Solr is installed in /opt; check other options if needed)
@@ -133,12 +137,19 @@ rm install_solr_service.sh
133137
134138Solr may be managed as a system service:
135139
136- ``` bash
140+ ``` sh
137141sudo systemctl status solr
138142sudo systemctl stop solr
139143sudo systemctl start solr
140144```
141145
146+ The result may be more complete with direct command:
147+ ``` sh
148+ sudo su - solr -c " /opt/solr/bin/solr status"
149+ sudo su - solr -c " /opt/solr/bin/solr stop"
150+ sudo su - solr -c " /opt/solr/bin/solr start"
151+ ```
152+
142153Solr is automatically launched and available in your browser at [ http://localhost:8983 ] .
143154
144155Solr is available via command line too at ` /opt/solr/bin/solr ` .
@@ -210,11 +221,11 @@ search engine to add such a protection.
210221Before upgrade, you should backup the folder ` /var/solr ` if you want to upgrade
211222a previous config:
212223
213- ``` bash
224+ ``` sh
214225cd /opt
215226java -version
216227# sudo apt install default-jre
217- wget --no-check-certificate https://www.eu .apache.org/dist/lucene/solr/6.6.6/solr-6.6.6.tgz
228+ wget https://archive .apache.org/dist/lucene/solr/6.6.6/solr-6.6.6.tgz
218229tar zxvf solr-6.6.6.tgz solr-6.6.6/bin/install_solr_service.sh --strip-components=2
219230# The "-f" means "upgrade". The symlink /opt/solr is automatically updated.
220231sudo bash ./install_solr_service.sh solr-6.6.6.tgz -f
@@ -229,7 +240,7 @@ When Solr is installed manually, there is no automatic uninstallation process.
229240The next commands are dangerous, so check the commands above twice before
230241executing, in particular don’t add whitespace after the slashs "/".
231242
232- ``` bash
243+ ``` sh
233244sudo systemctl stop solr
234245sudo update-rc.d -f solr remove
235246sudo rm /etc/init.d/solr
@@ -255,7 +266,7 @@ At least one index ("node", "collection" or "core") should be created in Solr
255266to be used with Omeka. The simpler is to create one via the command line to
256267avoid permissions issues.
257268
258- ```
269+ ``` sh
259270sudo su - solr -c " /opt/solr/bin/solr create -c omeka -n data_driven_schema_configs"
260271```
261272
@@ -274,7 +285,8 @@ The config files are saved in `/var/solr/data` by default.
274285If you choose a data driven schema, you can remove it and create a new one with
275286the same name.
276287
277- ```
288+ ``` sh
289+ # Warning: These commands are used for data driven indexation. Else, backup your config first.
278290sudo su - solr -c " /opt/solr/bin/solr delete -c omeka"
279291sudo su - solr -c " /opt/solr/bin/solr create -c omeka -n data_driven_schema_configs"
280292```
@@ -354,9 +366,11 @@ See commits for full list of contributors.
354366
355367
356368[ Solr ] : https://github.com/BibLibre/Omeka-S-module-Solr
369+ [ Search adapter for Solr ] : https://github.com/Daniel-KM/Omeka-S-module-SearchSolr
357370[ Omeka S ] : https://omeka.org/s
358- [ Search ] : https://github.com/biblibre /omeka-s-module-Search
371+ [ Search ] : https://github.com/Daniel-KM /omeka-s-module-Search
359372[ Apache Solr ] : https://lucene.apache.org/solr/
373+ [ Solr of BibLibre ] : https://github.com/biblibre/omeka-s-module-Solr
360374[ Solr module ] : https://github.com/biblibre/omeka-s-module-Solr
361375[ Installing a module ] : http://dev.omeka.org/docs/s/user-manual/modules/#installing-modules
362376[ documentation ] : https://lucene.apache.org/solr/guide/7_5/the-dismax-query-parser.html#q-alt-parameter
0 commit comments