Disclaimer : Learn to explore notes, non-result definitions . Many of them may be wrong, the reference value is not big
Elasticsearch's mapping
Order number such as: ATTS000928732 type does not participle. index:not_analyzed
The order number is all data such as: 63745345637 such participle is possible.
put/order_v5{"Settings": {//Set 10 shards, understood as a partition in a table partition in a database similar to the concept, do not know whether it is appropriate "Number_of_shards": Ten}, "mappings": { "Trades": {"_id": {"path": "ID"}, "Properties": {"id": {"type": "Integer", ID: Self-increment number//requirements: Query "store": true}, "name": {//Name: Jia Jie, johnson baby shower gel, 100w LED energy-saving lamp, outdoor multifunctional Folding chairs, etc.//requirements: Catch keywords, such as: Jia Jie + toothpaste or toothbrush;Johnson + Shower gel; Led+ energy-saving +100w; Outdoor + folding Chairs, etc./conclusion: if participle, it means that the product brand noun may be split, such as "Jia Jie", if not participle means that the user input requirements of high matching. First, the default participle, try to see. "Type": "String"}, "brand": {//brands: Pg,p&g, Procter and Gamble Group, stock, Lenovo Group, Lenovo computer, etc. "type": "String"}, "OrderNo": {//Order Number: ATTS000928732 "type": "string", "index": "Not_analyzed"}, "des Cription ": {//Description: 2015 Rose-scented Johnson baby shower gel, 550ml, pack//search: Require highlighting so set store:true. Keyword Weight: Shower gel, Johnson + shower gel or Rose Flower + Shower gel or 550ml + shower gel or shower gel + Pack mail, {2015 + Rose Fragrance ...}} Settings: Must participle, and to control the "type": "String","Sort": true}, "date": {"type": "Date"}, "City": {"type": "String"}, "Qty": {Index invalid ' type ': ' Float '}, ' price ': {//Prices: Float index Invalid ' type ': ' FL Oat "}}}}}
Reference:
Official website elasticsearch.org
http://donlianli.iteye.com/blog/1975727
Http://mednoter.com/ElasticSearch.html
....... Not listed, admire those notes to do well.
Elasticsearch mapping set properties based on different data formats