In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
Xiaobian to share with you how to build Solr environment, I believe most people still do not know how to, so share this article for your reference, I hope you have a lot of harvest after reading this article, let's go to understand it together!
Download Configuration Solr
1. Download Unzip Solr
wget http://www.eu.apache.org/dist/lucene/solr/4.6.0/solr-4.6.0.tgz
tar xzvf solr-4.6.0.tgz
2. Modify replacement profile
Replace Solr's schema.xml file with Nutch's schema-solr4.xml file
cp -f $NUTCH_HOME/conf/schema-solr4.xml $SOLR_HOME example/solr/collection1/conf/schema.xml
Edit the schema.xml file and add the following line between
Integrating Solr and Tomcat
1. Download Tomcat and Solr and extract
The requested URL/usr/share/tomcat/was not found on this server.
2. Start Tomcat server,service tomcat6 start
Browser input: http://localhost:8080
This step is to create Catalina/localhost directory in Tomcat/conf directory, which will be used next.
3. Deploying solr to Tomcat
a) Copy Solr directory/example/solr to Tomcat root directory
b) Copy Solr directory/dist/solr-4.6.0.war to Tomcat webapps/solr.war(rename), solr.war will be automatically decompressed, if not automatically decompressed, copy it to solr directory manual decompression, jar -xvf solr.war
c) Copy all jars under Solr directory/example/lib/ext to solr/WEB-INF/lib, and copy log4j.properties file under example/resources to solr/WEB-INF/lib;
d) Release the following comments in the modified solr/WEB-INF/web.xml and modify the path to
solr/home
/usr/share/tomcat6/webapps/solr
java.lang.String
4. Restart the Tomcat server and enter http://localhost:8080/solr in your browser to view services
Configure Solr Chinese Word Segmentation
1. Download path http://code.google.com/p/ik-analyzer/downloads/detail? name=IK%20Analyzer%202012FF_hf1.zip&can=2&q=
2. Copy the following three files into tomcat6\webapps\solr\WEB-INF\lib\folder below:
IKAnalyzer.cfg.xml、IKAnalyzer2012FF_u1.jar、stopword.dic
3. Modify schema.xml. under Tomcat7\solr\collection1\conf\folder. Add the following content to. This operation adds the type of field and specifies the word splitter for the field.
4. Modify the fields that need Chinese word segmentation, and change the type of the fields that need Chinese word segmentation to the newly added type text_ik.
The above is all the content of this article "How to build Solr environment", thank you for reading! I believe that everyone has a certain understanding, hope to share the content to help everyone, if you still want to learn more knowledge, welcome to pay attention to the industry information channel!
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.