Cloud computing platform (retrieval)-elasticsearch-Configuration

Source: Internet
Author: User

After elasticsearch is installed, We need to configure a series of elasticsearch configurations as follows:

 

Cluster. Name: rmscloud

Cluster name

 

Node. Name: "rcnode21"

Node name

 

Node. Tag: "tag21"

Node label

 

Node. Data: True

Whether the node stores data

 

Index. number_of_shards: 5

Number of index shards

 

Index. number_of_replicas: 1

Number of index copies

 

Path. Data:/data/elasticsearch/Data

Data directory storage location

 

Path. logs:/data/elasticsearch/log

Log Data storage location

Bootstrap. mlockall: True

Memory

 

Index. cache. Field. max_size: 500000

Index Cache

 

Index. cache. Field. expire: 5 m

Index slow start expiration time

 

You do not need to call other configurations. For details, refer to the appendix. In addition, you need to configure word segmentation as follows:

Index:

Analysis:

Tokenizer:

My_pinyin:

Type: pinyin

First_letter: "prefix"

Padding_char :""

Pinyin_first_letter:

Type: pinyin

First_letter: "only"

Mmseg_maxword:

Type: mmseg

Seg_type: "max_word"

Mmseg_complex:

Type: mmseg

Seg_type: "complex"

Mmseg_simple:

Type: mmseg

Seg_type: "simple"

Semicolon_spliter:

Type: Pattern

Pattern :";"

Pct_spliter:

Type: "pattern"

Pattern: "[%] +"

 

Filter:

Ngram_min_2:

Max_gram: 10

Min_gram: 2

Type: Ngram

Ngram_min_1:

Max_gram: 10

Min_gram: 1

Type: Ngram

Min2_length:

Min: 2

MAX: 4

Type: Length

 

Analyzer:

Lowercase_keyword:

Type: custom

Filter: [standard, lowercase]

Tokenizer: Standard

Lowercase_keyword_ngram_min_size1:

Type: custom

Filter: [ngram_min_1, standard, lowercase]

Tokenizer: Ngram

Lowercase_keyword_ngram_min_size2:

Type: custom

Filter: [ngram_min_2, standard, lowercase, min2_length, stop]

Tokenizer: Ngram

Lowercase_keyword_ngram:

Type: custom

Filter: [ngram_min_1, standard, lowercase]

Tokenizer: Ngram

Lowercase_keyword_without_standard:

Type: custom

Filter: [lowercase]

Tokenizer: keyword

Lowercase_whitespace:

Type: custom

Filter: [lowercase]

Tokenizer: whitespace

Ik:

Alias: [ik_analyzer]

Type: org. elasticsearch. Index. analysis. ikanalyzerprovider

IKE:

Alias: [ike_analyzer]

Type: org. elastichsearch. IK. Index. ikanalyzerprovider

Usermode: True

Mmseg:

Alias: [mmseg_analyzer]

Type: org. elasticsearch. Index. analysis. mmseganalyzerprovider

Comma_spliter:

Type: "pattern"

Pattern: "[, | \ s] +"

Pct_spliter:

Type: "pattern"

Pattern: "[%] +"

Custom_snowball_analyzer:

Type: "snowball"

Language: "English"

Simple_english_analyzer:

Type: "custome"

Tokenizer: whitespace

Filter: [standard, lowercase, snowball]

Edge_ngram:

Type: custom

Tokenizer: edgengram

Filter: [lowercase]

Pinyin_ngram_analyzer:

Type: custom

Tokenizer: my_pinyin

Filter: [standard, lowercase, Ngram]

Pinyin_first_letter_analyzer:

Type: custom

Tokenizer: pinyin_first_letter

Filter: [standard, lowercase]

Custom_auth_en_analyzer:

Type: custom

Tokenizer: semicolon_spliter

Filter: [standard, snowball, lowercase, trim]

 

Index. analysis. analyzer. Default. Type: "keyword"

 

 

After configuring the config, you also need to configure elastichsearch under the bin directory. Here, we mainly control some JVM parameters.

Es_min_mem = 27G

Es_max_mem = 27G

You can adjust the maximum memory and Minimum Memory of the JVM. For other JVM parameters, see the appendix.

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.