Skip to content

Commit 1a1a4c0

Browse files
author
DominikaK
committed
Add missing config files to Solr installation (#1742)
1 parent 650854f commit 1a1a4c0

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

docs/guide/search/solr.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,17 @@ Copy the necessary configuration files. In the example below from the root of yo
4040
# Make sure to replace the /opt/solr/ path with where you have placed Solr
4141
cd /opt/solr
4242
mkdir -p server/ez/template
43-
cp -R <ezplatform-solr-search-engine>/lib/Resources/config/solr/* server/ez/template
43+
cp -R <project_root>/vendor/ezsystems/ezplatform-solr-search-engine/lib/Resources/config/solr/* server/ez/template
4444
cp server/solr/configsets/_default/conf/{solrconfig.xml,stopwords.txt,synonyms.txt} server/ez/template
4545
cp server/solr/solr.xml server/ez
4646

47+
# If you are using Ibexa Commerce, additionally copy commerce-specific configuration files:
48+
cat <project_root>/vendor/ezsystems/ezcommerce-shop/src/Siso/Bundle/SearchBundle/Resources/config/solr/custom-fields-types.xml >> server/ez/template/custom-fields-types.xml
49+
cat <project_root>/vendor/ezsystems/ezcommerce-shop/src/Siso/Bundle/SearchBundle/Resources/config/solr/language-fieldtypes.xml >> server/ez/template/language-fieldtypes.xml
50+
4751
# Modify solrconfig.xml to remove the section that doesn't agree with your schema
4852
sed -i.bak '/<updateRequestProcessorChain name="add-unknown-fields-to-the-schema".*/,/<\/updateRequestProcessorChain>/d' server/ez/template/solrconfig.xml
49-
 
53+
5054
# Start Solr (but apply autocommit settings below first if you need to)
5155
bin/solr -s ez
5256
bin/solr create_core -c collection1 -d server/ez/template

0 commit comments

Comments
 (0)