What is SOLR
?
Apache SOLR is built on Lucene (full-text search engine) to help us find the information we need from a large amount of data. It can be used for searching and storage purposes. Like other NoSQL databases, it is a non-relational data storage and processing technology.
?
the installation and configuration of SOLR
?
- Environmental requirements: tomcat8.0+solr7.4 (version please agree with me)
?
- Solr7.4 Download: http://archive.apache.org/dist/lucene/solr/(Note select. zip format,. tgz is used on Linux systems)
?
-
- Step1: Copy the webapp folder under solr-7.4.0/server/solr-webapp/ to webapps under Tomcat Directory (and rename to SOLR)
?
-
- Step2: Copy all the jar files under solr-7.4.0/server/lib/ext/ to the webapps/solr/web-inf/lib directory under Tomcat .
?
-
- Step3: Copy all jar files starting with Solr-7.4.0/server/lib under all metrics to the webapps/solr/web-inf/lib directory.
?
-
- Step4: Modify the 41st line of the tomcat/webapps/solr/web-inf/web.xml file to specify the directory where the solrhome is located
?
-
- STEP5: Modify the 164th line of the tomcat/webapps/solr/web-inf/web.xml file
?
-
-
- STEP7: With SOLR logging store address, create a new logs folder under Solr-home
?
-
- STEP8: Copy solr-7.4.0 under contrib and Dist folder to solr-home directory.
?
-
- STEP9: Create a new New_core folder in the solr-home directory, and copy
solr-7.4.0\server\solr\configsets_default\ directory under conf folder to Solr-home\new_core .
?
-
- STEP10: Modify the solr-home\newcore\conf\solrconfig.xml file
?
-
- STEP11: Configure an IK word breaker to import the ik-analyzer-solr5-5.x and solr-analyzer-ik-5.1.0 two jar packages tomcat\webapps\solr\ Web-inf\lib ,: https://pan.baidu.com/s/1shNBxP4sNzfJ0UAhRJ6dNg
?
-
-
- STEP13: Launch Tomcat, Access http://localhost:8080/solr/index.html
?
?
Encounter the Pit
?
The SOLR backend is normally accessed with Tomcat's Startup.bat boot, but after booting Tomcat in Eclipse, access to SOLR is 404
?
Cause of a pit
?
found that the home page of Tomcat access Tomcat launched in Eclipse was not accessible, and Baidu discovered that Eclipse had redirected the Tomcat Project publishing directory (WebApp in the Tomcat directory). You will find that your project file cannot be found in the WebApp directory under the Tomcat installation directory.
?
Pits
?
Reconfigure the following Tomcat server: On the server Page in Eclipse, first remove the project deployed in Tomcat, then double-click the Tomcat service and select the use Tomcat installation (Task control of Tomcat installation) selects the Tomcat installation directory as the publishing directory for the project.
Tomcat8.0 Build solr7.4