SOLR is a high-performance, Java 5-based full-text search server (Lucene focuses on the underlying construction of search, while SOLR focuses on enterprise applications. Lucene is not responsible for supporting the necessary management of search services ). At the same time, it is expanded to provide a richer query language than Lucene, and at the same time, it is configurable and scalable, and the query performance is optimized, it also provides a complete functional management interface and is a very good full-text search engine.
It provides APIs similar to Web-service. You can submit an XML file in a certain format to the search engine server through an HTTP request to generate an index. You can also use the http get operation to submit a search request and obtain the returned results in XML format;
Installation Configuration:
1. Download the zip package of SOLR and decompress it. Rename the war file under the DIST directory to SOLR. War and copy it to the webapps directory of Tomcat.
2. Set the master location of SOLR. The easiest way is to configure a JNDI of Java: COMP/ENV/SOLR/home in Tomcat to point to the SOLR home directory (under the example directory ), create the tomcat installation directory/CONF/Catalina/localhost/SOLR. XML file
SOLR. xml
<Context docBase="C:/tools/tomcat6.0/webapps/solr.war" debug="0" crossContext="true" >
<Environment name="solr/home" type="java.lang.String" value="C:/tools/tomcat6.0/webapps/solr" override="true" />
</Context>
Variable 1: context docbase = "" is the SOLR. War directory.
Variable 2: Environment name = "SOLR/home" must be written in this way (SOLR is the home directory of SOLR by default)
Variable 3: environment value = "D:/SOLR" value, which is the SOLR directory and must have
After the configuration is complete, start Tomcat access