Next, here is a summary of the installation and configuration of SOLR
1. Get ready
1. Installing JAVA8 and Tomcat9, Java and Tomcat installations are no longer duplicated here. It is important to note that these two versions are compatible with the issue. Seemingly java8 not supported, TOMCAT7 the following versions.
2. Download SOLR installation package, the latest version is 5.3.1
: http://www.apache.org/dyn/closer.lua/lucene/solr/5.3.1
2. Installation
1. Unzip the SOLR tarball and place the Solr-5.3.1\server\solr-webap folder under the WebApp folder, copy it to the Tomcat\webapps\ directory, and Change to SOLR
2. Copy the jar from the Solr-5.3.0\server\lib\ext in the SOLR compact package to the Tomcat\ webapps\solr\web-inf\lib directory
3. Copy solr-5.3.0/server/resources/log4j.properties from SOLR compressed package to tomcat\ Webapps\solr\web-inf\lib directory
4. Copy the SOLR compressed package in the SOLR-5.3.0/SERVER/SOLR directory to the D:\solr_home directory
5. Open the Web. XML under Tomcat/webapps/solr/web-inf and add the following configuration content (the content is commented out in the initial state):
<env-entry> <env-entry-name>solr/home</env-entry-name> <env-entry-value>d:/ Solr_home</env-entry-value> <env-entry-type>java.lang.string</env-entry-type></ Env-entry>
Change the contents of <env-entry-value> into your solrhome path, this is D:/solr_home
This configuration is primarily to establish the relationship between Tomcat and SOLR, and its role is to have Tomcat find the SOLR directory you have configured.
6. Restart Tomcat and the admin interface of SOLR will appear in the browser input HTTP://LOCALHOST:8080/SOLR
Note: I just started http://localhost:8080/solr/page inaccessible. The following exception occurred:
Workaround: Copy the jar package from SOLR unpacked folder Dist to the Tomcat\webapps\solr\web-inf\lib directory and create the Lib directory in the jar package and contrib\velocity\lib.
7. Configure collection, under the D:\solr_home directory, create a directory mycore1, copy all the files under D:\solr_home\configsets\basic_configs\conf to D:\solr_home \ mycore1\conf under
8. In the D:\solr_home directory, create the file core.properties, and edit the file
Name= Mycore1
9. Visit the page HTTP://LOCALHOST:8080/SOLR, view core Admin, ' Mycore1 ' is displayed
Here, SOLR is basically installed successfully.
SOLR Learning Summary (ii) installation and configuration of SOLR