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