peviitor-ro / solr

solr for peviitor.ro
1 stars 1 forks source link

update solr to latest version -- Apache Solr 9.0.0 available #6

Open sebiboga opened 2 years ago

sebiboga commented 2 years ago

update solr to latest version -- Apache Solr 9.0.0 available

sebiboga commented 2 years ago

needs JAVA 11

sebiboga commented 2 years ago

https://solr.apache.org/downloads.html

sebiboga commented 2 years ago

WINDOWS

c:\solr\solr-9.0.0\bin\solr.cmd create -c mycollection -n data_driven_schema_configs

sebiboga commented 2 years ago

image

sebiboga commented 2 years ago

c:\solr\solr-9.0.0\bin\solr.cmd create -c shaqodoon -n data_driven_schema_configs

sebiboga commented 2 years ago

zimbor.go.ro already have JDK 11

sebiboga commented 2 years ago

REPO Solr Releases https://archive.apache.org/dist/lucene/solr/

sebiboga commented 2 years ago

9.0.0 https://www.apache.org/dyn/closer.lua/solr/solr/9.0.0/solr-9.0.0.tgz?action=download

https://dlcdn.apache.org/solr/solr/9.0.0/solr-9.0.0.tgz

sebiboga commented 2 years ago

wget https://dlcdn.apache.org/solr/solr/9.0.0/solr-9.0.0.tgz

sebiboga commented 2 years ago

solr-9.0.0 installed on port 8984 on zimbor.go.ro IN TESTING

sebiboga commented 2 years ago

https://tecadmin.net/install-apache-solr-on-ubuntu/

sebiboga commented 2 years ago

solr 9.0.0 doesn't START

sebiboga commented 2 years ago

solr 9.0.0 works on Windows 10

sebiboga commented 2 years ago

WARNING: /opt/solr-9.0.0 already exists! Skipping extract ...

Installing symlink /opt/solr2 -> /opt/solr-9.0.0 ...

Installing /etc/init.d/solr2 script ...

Installing /etc/default/solr2.in.sh ...

Service solr2 installed. Customize Solr startup configuration in /etc/default/solr2.in.sh ● solr2.service - LSB: Controls Apache Solr as a Service Loaded: loaded (/etc/init.d/solr2; generated) Active: active (exited) since Sat 2022-06-18 18:49:23 EEST; 5s ago Docs: man:systemd-sysv-generator(8) Process: 5141 ExecStart=/etc/init.d/solr2 start (code=exited, status=0/SUCCESS)

iun 18 18:49:18 sebi-PowerEdge-T110-II systemd[1]: Starting LSB: Controls Apache Solr as a Service... iun 18 18:49:18 sebi-PowerEdge-T110-II su[5143]: (to solr) root on none iun 18 18:49:18 sebi-PowerEdge-T110-II su[5143]: pam_unix(su-l:session): session opened for user solr by (uid=0) iun 18 18:49:22 sebi-PowerEdge-T110-II solr2[5194]: Started Solr server on port 8984 (pid=5190). Happy searching! iun 18 18:49:23 sebi-PowerEdge-T110-II systemd[1]: Started LSB: Controls Apache Solr as a Service.

sebiboga commented 2 years ago

ok, so the installer let SOLR_JETTY_HOST set by default to "127.0.0.1" which means it will work ONLY on localhost YOU need to set this to "0.0.0.0" the settings is in /etc/default/~solr or /etc/default/~solr2

sebiboga commented 2 years ago

@irina-adam we have it working at http://zimbor.go.ro:81/

sebiboga commented 2 years ago

[TO DO]

sebiboga commented 2 years ago

COREs created;

sebiboga commented 2 years ago

will resume first thing in the morning...

sebiboga commented 2 years ago

image

sebiboga commented 2 years ago

In prezent avem 2 instante de SOLR pe masina ZIMBOR.GO.RO SOLR 8.10.1 pe portul 8983 SOLR 9.0.0 pe portul 8984 Din exterior portul 80 este redirectat spre SOLR 8.10.1, adica spre portul 8983 Din exterior portul 81 este redirectat spre SOLR 9.0.0 adica spre portul 8984

image

image

sebiboga commented 2 years ago
sebiboga commented 2 years ago
sebiboga commented 2 years ago

image

sebiboga commented 2 years ago

tested: zimbor.go.ro pointeaza spre SOLR 9.0.0

image

sebiboga commented 2 years ago
sebiboga commented 1 year ago

1) copiaza TGZ file de pe Apache SOLR local 2) extrage TGZ file 3) copiaza fisierul install_solr_service.sh la acelasi nivel cu arhiva solr 4) rulezi comanda: sudo bash ./install_solr_service.sh solr-9.0.0.tgz -s solr4 -p 8986 -f

sebiboga commented 1 year ago

COPY CORES from old SOLR to NEW SOLR version

1) sudo su - 2) mc 3) copy all cores from /var/solr3/data to /var/solr4/data 4) sudo service solr4 stop 5) sudo service solr4 start

sebiboga commented 4 months ago

wget https://dlcdn.apache.org/solr/solr/9.5.0/solr-9.5.0.tgz tar xzf solr-9.5.0.tgz cd solr-9.5.0/ copiaza solr-9.5.0.tgz in folderul bin sudo bash ./install_solr_service.sh solr-9.5.0.tgz -s solr9 -p 8985 modifica in /etc/default/solr9.in.sh acel interface JETTY cu valoarea 0.0.0.0 restart service

sudo service solr9 stop sudo service solr9 start