Skip to content

Commit 51d928c

Browse files
author
DominikaK
committed
Add missing config files to Solr installation (#1742)
1 parent 047e827 commit 51d928c

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

docs/search/solr_search_engine.md

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,21 @@ Copy the necessary configuration files. In the example below from the root of yo
2828
``` bash
2929
# Make sure to replace the /opt/solr/ path with where you have placed Solr
3030
cd /opt/solr
31-
mkdir -p server/ez/template
32-
cp -R ./vendor/ibexa/solr/src/lib/Resources/config/solr/* server/ez/template
33-
cp server/solr/configsets/_default/conf/{solrconfig.xml,stopwords.txt,synonyms.txt} server/ez/template
31+
mkdir -p server/ibexa/template
32+
cp -R <project_root>/vendor/ibexa/solr/src/lib/Resources/config/solr/* server/ibexa/template
33+
cp server/solr/configsets/_default/conf/{solrconfig.xml,stopwords.txt,synonyms.txt} server/ibexa/template
3434
cp server/solr/solr.xml server/ez
3535

36+
# If you are using Ibexa Commerce, additionally copy commerce-specific configuration files:
37+
cat <project_root>/vendor/ibexa/commerce-shop/src/bundle/Search/Resources/config/solr/custom-fields-types.xml >> server/ibexa/template/custom-fields-types.xml
38+
cat <project_root>/vendor/ibexa/commerce-shop/src/bundle/Search/Resources/config/solr/language-fieldtypes.xml >> server/ibexa/template/language-fieldtypes.xml
39+
3640
# Modify solrconfig.xml to remove the section that doesn't agree with your schema
37-
sed -i.bak '/<updateRequestProcessorChain name="add-unknown-fields-to-the-schema".*/,/<\/updateRequestProcessorChain>/d' server/ez/template/solrconfig.xml
41+
sed -i.bak '/<updateRequestProcessorChain name="add-unknown-fields-to-the-schema".*/,/<\/updateRequestProcessorChain>/d' server/ibexa/template/solrconfig.xml
3842

3943
# Start Solr (but apply autocommit settings below first if you need to)
4044
bin/solr -s ez
41-
bin/solr create_core -c collection1 -d server/ez/template
45+
bin/solr create_core -c collection1 -d server/ibexa/template
4246
```
4347

4448
##### SolrCloud
@@ -442,7 +446,7 @@ ibexa_solr:
442446

443447
#### Configuring Master for replication
444448

445-
First you need to change the core configuration in `solrconfig.xml` (for example `*/opt/solr/server/ez/collection1/conf/solrconfig.xml`).
449+
First you need to change the core configuration in `solrconfig.xml` (for example `*/opt/solr/server/ibexa/collection1/conf/solrconfig.xml`).
446450
You can copy and paste the code below before any other `requestHandler` section.
447451

448452
```xml

0 commit comments

Comments
 (0)