Understanding the SOLR structure, understanding the core file directory

Source: Internet
Author: User
Tags solr

After downloading SOLR and extracting it, we find that there are a lot of things in SOLR's catalogue, at which point we may feel panic and do not know how to do it, let me take you to know it.

1. After decompression, the SOLR directory structure is as follows:

Although there are a lot of files, but we need to actually two, such as the picture with the red box of the document SOLR and WebApps, other documents you can ignore it, interested can see the five-minute SOLR tutorial.

2. Deploy to Tomcat

Deploy SOLR to Tomcat under "SOLR deployment to Tomcat"

3. Understanding the Concept "core"

For example, SOLR is like an operating system, software installed in the operating system is "core", each core has its own configuration files and data.

The extracted file/example/solr/collection1 is a core, and the core is managed by/example/solr/solr.xml.

A core if you want SOLR to manage it, you need to register it in the Solr.xml configuration file, as shown in the Solr.xml configuration:

<core loadonstartup= "true" instancedir= "Collection1" transient= "false" Name= "collection1"/> </ Cores></solr>

4. Create multiple Cores
In a real project, sometimes a SOLR cannot have just one core, and there will be multiple. such as enterprise search, product search and so on. You can then copy one or more copies of/example/solr/collection1 to your SOLR home, change it to the file name you want, and finally register the newly added core with the/example/solr/solr.xml:

<core loadonstartup= "true" instancedir= "Collection1" transient= "false" Name= " collection1"/> <core loadonstartup= "true" instancedir= "Newcore" transient= "false" Name= "newcore"/> </cores> </solr>

5. Understanding the Core directory structure

There are two files in each core, conf and data
Conf: mainly used to store the core configuration file,
(1), Schema.xml used to define the index library fields and word breakers, etc., this configuration file is the core file
(2), Solrconfig.xml defines the configuration information for this core, such as:

<autoCommit>  <maxTime>15000</maxTime>  <openSearcher>false</openSearcher>  </autoCommit>

Defines when to automatically commit, whether to open a new searcher after submission, and so on.
Data: Used primarily for the core, i.e. index-index files and log-log records.

This article is from luoshengsha.com, please indicate the source and corresponding link when reproduced.

Permanent link to this article: http://www.luoshengsha.com/147.html

Understanding the SOLR structure, understanding the core file directory

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.