Linux-solr-how to configure a Chinese analyzer tutorial, linux-solr Analyzer

Source: Internet
Author: User

Linux-solr-how to configure a Chinese analyzer tutorial, linux-solr Analyzer

The principle of the Chinese analyzer is that the user gives solr a lot of information and finds the information you want after query. The part that inputs all information is called an index or update. In Solr, a document consists of fields. You can specify the field type to indicate the Data Type contained in the Solr field. The field type tells Solr how to explain fields and how to query fields. Fields can contain different types of data. Solr obtains the information in the document field and adds the information to the index. When you perform a query, Solr can quickly query the index and return matched documents. Field Analysis tells Solr how to process incoming data when constructing an index. The more accurate name of this process will be processed or even digested, but the official name is analysis.

Create a core

If Solr is not started using the sample configuration, you need to create a core for indexing and searching. Run:

Bin/solr create-c <custom Instance name>

This creates a core that uses the data-driven architecture. When a document is added to an index, the architecture tries to guess the correct field type.

To view all available options for creating a new kernel, run the following command:

bin/solr create -help
Solr configuration file

Solr. xml specifies the configuration options for your Solr server instance.

Each Solr core:

Core. properties defines specific attributes for each core, such as its name, the set to which the core belongs, the location of the mode, and other parameters.

Solrconfig. xml controls high-level behaviors. For example, you can specify a backup location for the data directory.

Managed-schema (or change schema. xml to) describes the document you want Solr to index. Schema defines the document as a field set. You can define the field type and field itself. The field type definition function is powerful and contains information about how Solr processes input field values and query values.

Data/directory containing the low-level index file.

Add Solr Fields

Add a browser

Select Order in Core Selector

OrderName already added

In addition, you can add fields from the configuration file conf/managed-schema to enable the Chinese analyzer.

Introduction complete!

Related Article

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.