No. 364, Python distributed crawler build search engine Scrapy explaining-elasticsearch (search engine) mapping mapping management

Source: Internet
Author: User

No. 364, Python distributed crawler build search engine Scrapy explaining-elasticsearch (search engine) mapping mapping management

1, mapping (mapping) Introduction

mapping : When creating an index, you can pre-define the type of field and related properties
Elasticsearch guesses the field mappings you want based on the underlying type of the JSON source data, converts the input data into searchable index entries, and mapping is our own defined field data type. Also tells Elasticsearch how to index data and whether it can be searched


role : will make the index establishment more detailed and perfect


type : static mapping and dynamic mapping

2. Built-in mapping type (i.e. data type)

String Type:Text,keyword two kinds
  text type: participle, extract stemming, create inverted index
  keyword Type : is an ordinary string that can only be matched to search for

Number type : long,integer,short,byte,double,float

Day type : Date

bool (Boolean) Type : Boolean

Binary (binary) type : Binary

Complex Type:object,nested

Geo (region) type : Geo-point,geo-shape

Professional type : ip,competion

3. Attribute Introduction
Store Properties
Index Property
Null_value Property
Analyzer Properties
Include_in_all Property
Format Property

No. 364, Python distributed crawler build search engine Scrapy explaining-elasticsearch (search engine) mapping mapping management

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.