In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Hardware environment
Window version: windows 7 64-bit
Software environment
JDK version: 1.7.0_79-b15
Solr version: solr-5.5.3
Tomcat version: apache-tomcat-8.5.4-windows-x64
IK version: IK-Analyzer5.0
Solr download address
Http://archive.apache.org/dist/lucene/solr/
Installation process
The first step is to download solr5.5.3. After decompression, the directory structure is as follows
The second step is to download the jar package conflict between tomcat8,tomcat7 and solr5 versions of servlet-api. The tomcat directory structure is as follows
The third step is to change the webapp folder under F:\ solr-5.5.3\ server\ solr-webapp to F:\ apache-tomcat-8.5.4-windows-x64\ apache-tomcat-8.5.4\ webapps and rename it to solr. The directory structure is as follows
Step 4, go to the F:\ solr-5.5.3\ server directory and copy the solr folder under this directory to the tomcat sibling directory. The directory structure is as follows
Step 5: go to F:\ apache-tomcat-8.5.4-windows-x64\ apache-tomcat-8.5.4\ webapps\ solr\ WEB-INF, open web.xml, and remove the solr/home comments from env-entry. The content structure is as follows
Note: why does solr/ make this value here? why should it be configured in this way? this is because the default starting location of solr env-entry-value is under the bin folder of tomcat, so this means that the directory above the bin folder, and then under the solr folder of the upper directory, that is, under the solr folder under apache-tomcat-8.5.4, is the location of solr's solrhome. Other people on the Internet put the solrhome (solr here) folder directly under tomcat's bin directory, which I don't think is very good. Another advantage of this configuration here is that when we deploy the application, as long as we copy the solr_server to the target server, start tomcat, we can, we do not need to modify any configuration, according to the regular configuration, specify to a specific drive letter, from the development to the deployment server, we need to modify the location of the solrhome.
Step 6, go to F:\ solr-5.5.3\ server\ lib\ ext and copy all jar packages to F:\ apache-tomcat-8.5.4-windows-x64\ apache-tomcat-8.5.4\ webapps\ solr\ WEB-INF\ lib directory
Step 7, go to F:\ solr-5.5.3\ server\ resources and copy all properties files to F:\ apache-tomcat-8.5.4-windows-x64\ apache-tomcat-8.5.4\ webapps\ solr\ WEB-INF\ classes directory. If there is no classes file, please create your own.
Step 8, under F:\ apache-tomcat-8.5.4-windows-x64\ apache-tomcat-8.5.4\ bin, click startup.bat, launch tomcat, and access http://localhost:8080/solr/admin.html. The interface is as follows: successfully built.
Step 9, add core, go to the F:\ apache-tomcat-8.5.4-windows-x64\ apache-tomcat-8.5.4\ solr folder, and create a folder to store the index and configuration of core, such as my collection
Go to the F:\ solr-5.5.3\ server\ solr\ configsets\ sample_techproducts_configs folder and copy the conf directory under this folder to the core directory collection
Step 10: go to http://localhost:8080/solr/admin.html, go to the solr management page, click the left menu Core Admin, click Add Core, type collection in both name and instanceDir, and click Add Core
At this point, you can see your new core under Core Selector.
Then, when you enter the F:\ apache-tomcat-8.5.4-windows-x64\ apache-tomcat-8.5.4\ solr\ collection directory, you will find that there is an extra data folder and an properties file, as shown in the following figure
The data directory is used to store index files, and the core.properties file is used to store the configuration information of core.
Step 11, download the IKAnalyzer-5.0.jar copy to F:\ apache-tomcat-8.5.4-windows-x64\ apache-tomcat-8.5.4\ webapps\ solr\ WEB-INF\ lib directory, and copy the IKAnalyzer.cfg.xml and stopword.dic files in F:\ IK-Analyzer5.0\ IK-Analyzer\ src directory to F:\ apache-tomcat-8.5.4-windows-x64\ apache-tomcat-8.5.4\ webapps\ solr\ WEB-INF\ classes directory. Modify the managed-schema file in the F:\ apache-tomcat-8.5.4-windows-x64\ apache-tomcat-8.5.4\ solr\ collection\ conf directory as follows
So far, the complete construction of solr+IK participle has been successful.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.