Tomcat inside Configuration SOLR service, Tomcat started successfully, but access to SOLR 404 error

Source: Internet
Author: User
Tags solr

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


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.