Skip to content

Commit

Permalink
EC-190: Added support for SOLR 7.7 (#21)
Browse files Browse the repository at this point in the history
* EC-190: Fixed support for SOLR 7.7

* EC-190: Fixed SOLR related env vars
  • Loading branch information
webhdx authored Jul 15, 2020
1 parent 8188f27 commit 40a351f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
7 changes: 4 additions & 3 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ DATABASE_COLLATION=utf8mb4_unicode_520_ci
SISO_SEARCH_SOLR_HOST=localhost
SISO_SEARCH_SOLR_PORT=8983
SISO_SEARCH_SOLR_CORE=collection1
SISO_SEARCH_SOLR_PATH=/solr
# Do not add 'solr' to the path. It is automatically added by SolariumBundle.
SISO_SEARCH_SOLR_PATH=/

# eZ Platform SOLR Search Engine
SOLR_DSN=http://${SISO_SEARCH_SOLR_HOST}:${SISO_SEARCH_SOLR_PORT}${SISO_SEARCH_SOLR_PATH}
Expand Down Expand Up @@ -125,8 +126,8 @@ JWT_PASSPHRASE=0d30a16bfee14363b574e4b4238ea7ec
###< lexik/jwt-authentication-bundle ###

###> nelmio/solarium-bundle ###
SOLR_HOST=localhost
SOLR_CORE=example
SOLR_HOST=${SISO_SEARCH_SOLR_HOST}
SOLR_CORE=${SISO_SEARCH_SOLR_CORE}
###< nelmio/solarium-bundle ###

###> google/recaptcha ###
Expand Down
8 changes: 4 additions & 4 deletions install-solr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ if [ $# -gt 0 ]; then
fi

wget https://archive.apache.org/dist/tika/tika-app-1.20.jar -O bin/tika-app-1.20.jar
wget https://archive.apache.org/dist/lucene/solr/6.6.5/solr-6.6.5.tgz
tar xfz solr-6.6.5.tgz
mv solr-6.6.5 solr
wget https://archive.apache.org/dist/lucene/solr/7.7.3/solr-7.7.3.tgz -O solr-7.7.3.tgz
tar xfz solr-7.7.3.tgz
mv solr-7.7.3 solr
cd solr
mkdir -p server/ez/template
cp -R ../migrations/solr/* server/ez/template
cp server/solr/configsets/basic_configs/conf/{currency.xml,solrconfig.xml,stopwords.txt,synonyms.txt,elevate.xml} server/ez/template
cp example/example-DIH/solr/solr/conf/{currency.xml,solrconfig.xml,stopwords.txt,synonyms.txt,elevate.xml} server/ez/template
cp server/solr/solr.xml server/ez
## Modify solrconfig.xml to remove section that doesn't agree with our schema
sed -i.bak '/<updateRequestProcessorChain name="add-unknown-fields-to-the-schema">/,/<\/updateRequestProcessorChain>/d' server/ez/template/solrconfig.xml
Expand Down

0 comments on commit 40a351f

Please sign in to comment.