Take a morning to learn about SOLR and solve the problem:
First understand what SOLR is:
SOLR is a high-performance, using JAVA5 development, SOLR based on Lucene's Full-text search server. At the same time, it has been extended to provide a richer query language than Lucene, while achieving configurable, scalable and optimized query performance, and provides a complete functional management interface, is a very good full-text search engine.
The method of Full-text search is mainly divided into two kinds: search by word and search by word. Search by word means that each word in the article is indexed and the word is decomposed into a combination of words when retrieved. For a variety of different languages, words have different meanings, such as in the English word and the word is actually one, and the Chinese word and the word have very big difference. Search by word refers to the words in the article, that is, the semantic unit index, retrieval by word retrieval, and can deal with synonyms and so on. English and other Western words because of the blank word segmentation, so the implementation and word processing similar, add synonymous processing is also very easy. Chinese and other oriental words need to be divided into words, in order to achieve the purpose of indexing by word, in this regard, is the current Full-text search technology, especially the Chinese full-text search technology difficulties.
Then look at the problems with installing Linux:Configuration of SOLR service in Tomcat, Tomcat started successfully, but access to SOLR 404 error
However, when you access HTTP://LOCALHOST:8080/SOLR, you are prompted with a 404 error.
The Web.xml file configuration under SOLR under Tomcat's WebApps is:
<env-entry>
<env-entry-name>solr/home</env-entry-name>
<env-entry-value>/usr/local/solr/solrhome</env-entry-value>
<env-entry-type>java.lang.String</env-entry-type>
</env-entry>
and the Solrhome file path is:
The version used by the Declaration,
Workaround: Remove the redeployment, note that JDK versions are consistent and new problems occur,
The reason for this is that SOLR must have a default index named Collection1 when it starts. You need to add a file under the Solrhome file Solr.xml
Need to add a piece of code: <?xml version= "1.0" encoding= "UTF-8" standalone= "yes"?>
<solr>
</solr>
Finally start success, have questions please comment