Dataverse:Solr

De BrapciWiki
Ir para navegação Ir para pesquisar
su - solr
cd /usr/local/solr
wget https://archive.apache.org/dist/lucene/solr/8.8.1/solr-8.8.1.tgz
tar xvzf solr-8.8.1.tgz
cd solr-8.8.1
cp -r server/solr/configsets/_default server/solr/collection1

You should already have a “dvinstall.zip” file that you downloaded from https://github.com/IQSS/dataverse/releases . Unzip it into /tmp. Then copy the files into place:

cp dvinstall/schema*.xml /usr/local/solr/solr-8.8.1/server/solr/collection1/conf cp dvinstall/solrconfig.xml /usr/local/solr/solr-8.8.1/server/solr/collection1/conf


<Set name="requestHeaderSize"><Property name="solr.jetty.request.header.size" default="102400" /></Set>

Collections

cd /home/dataverse/
cp dvinstall/schema*.xml /usr/local/solr/solr-8.8.1/server/solr/collection1/conf
cp dvinstall/solrconfig.xml /usr/local/solr/solr-8.8.1/server/solr/collection1/conf

File solr.service

pico /etc/systemd/system/solr.service
[Unit]
Description = Apache Solr
After = syslog.target network.target remote-fs.target nss-lookup.target
[Service]
User = solr
Type = forking
WorkingDirectory = /usr/local/solr/solr-8.8.1
ExecStart = /usr/local/solr/solr-8.8.1/bin/solr start -m 1g -j "jetty.host=127.0.0.1"
ExecStop = /usr/local/solr/solr-8.8.1/bin/solr stop
LimitNOFILE=65000
LimitNPROC=65000
Restart=on-failure
[Install]
WantedBy = multi-user.target