Last active
August 14, 2018 09:59
-
-
Save xiongxin/8d69b28c759ce8b9215c34a1317c2344 to your computer and use it in GitHub Desktop.
Revisions
-
xiongxin revised this gist
Aug 14, 2018 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,4 @@ # 建表mapping ``` PUT /spider_amazon_product_monitor @@ -7,7 +7,7 @@ PUT /spider_amazon_product_monitor } ``` # 插入一条数据 ``` POST spider_amazon_product_monitor/spider_amazon_product_monitor/1 { -
xiongxin revised this gist
Aug 14, 2018 . 1 changed file with 9 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,12 @@ # 建数据 ``` PUT /spider_amazon_product_monitor { "JSON文件" } ``` # 建一条数据 ``` POST spider_amazon_product_monitor/spider_amazon_product_monitor/1 -
xiongxin created this gist
Aug 14, 2018 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,14 @@ # 建一条数据 ``` POST spider_amazon_product_monitor/spider_amazon_product_monitor/1 { "@timestamp": "2015/09/02", "id": "26_44_B019SL9EZ8_FR", "company_id": 26, "user_id": 44, "store_id": 0, "group_id": 43 } ``` # 根据@timestamp字段 建index pattern This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,251 @@ { "settings":{ "number_of_shards":3, "number_of_replicas":1, "index":{ "analysis":{ "analyzer":{ "default":{ "tokenizer":"standard" } } } } }, "mappings":{ "spider_amazon_product_monitor":{ "_routing":{ "required":true, "path": "company_id" }, "_all":{ "enabled":false }, "_source":{ "enabled":false }, "dynamic":"true", "properties":{ "@timestamp":{ "type":"date", "store":true, "index":false, "format": "strict_date_optional_time||epoch_millis" }, "id":{ "type":"text", "store":true, "index":false }, "company_id":{ "type":"long", "store":true, "index":false, "fielddata": true }, "user_id":{ "type":"long", "store":true, "index":false }, "store_id":{ "type":"long", "store":true, "index":false }, "group_id":{ "type":"long", "store":true, "index":false } , "bas_code":{ "type":"text", "store":true, "index":false }, "sapm_asin":{ "type":"text", "store":true, "index":false }, "sapm_root_asin":{ "type":"text", "store":true, "index":false }, "sapm_model_type":{ "type":"long", "store":true, "index":false }, "sapm_title":{ "type":"text", "store":true, "index":true }, "sapm_currency":{ "type":"text", "store":true, "index":false }, "sapm_price":{ "type":"text", "store":true, "index":false }, "sapm_img_url":{ "type":"text", "store":true, "index":false }, "sapm_review_num":{ "type":"text", "store":true, "index":false }, "sapm_review_star":{ "type":"text", "store":true, "index":false }, "sapm_ave_star":{ "type":"text", "store":true, "index":false }, "sapm_follow_sell_num":{ "type":"text", "store":true, "index":false }, "sapm_added_time":{ "type":"text", "store":true, "index":false }, "sapm_category":{ "type":"text", "store":true, "index":false }, "sapm_top_rank":{ "type":"long", "store":true, "index":false }, "sapm_natural_rank":{ "type":"long", "store":true, "index":false }, "sapm_kind_type":{ "type":"text", "store":true, "index":false }, "sapm_bsr":{ "type":"long", "store":true, "index":false }, "sapm_increment_bsr":{ "type":"long", "store":true, "index":false }, "sapm_manufacture":{ "type":"text", "store":true, "index":false }, "sapm_brand":{ "type":"text", "store":true, "index":false }, "sapm_dimensions":{ "type":"text", "store":true, "index":false }, "sapm_weight":{ "type":"text", "store":true, "index":false }, "sapm_shipping_weight":{ "type":"text", "store":true, "index":false }, "sapm_fullfilled":{ "type":"text", "store":true, "index":false }, "sapm_upc":{ "type":"text", "store":true, "index":false }, "sapm_ean":{ "type":"text", "store":true, "index":false }, "sapm_mpn":{ "type":"text", "store":true, "index":false }, "sapm_part_number":{ "type":"text", "store":true, "index":false }, "sapm_features":{ "type":"text", "store":true, "index":false }, "sapm_description":{ "type":"text", "store":true, "index":false }, "sapm_search_terms":{ "type":"text", "store":true, "index":false }, "sapm_best_sellers_rank":{ "type":"text", "store":true, "index":false }, "sapm_extra":{ "type":"text", "store":true, "index":false }, "sapm_create_time":{ "type":"text", "store":true, "index":false }, "sapm_update_time":{ "type":"long", "store":true, "index":false }, "rcpm_deleted":{ "type":"long", "store":true, "index":false } } } } }