Skip to content

Instantly share code, notes, and snippets.

@zhimoe
Created January 20, 2019 16:15
Show Gist options
  • Save zhimoe/7c52902a906416e1a41b8f8f1367d7e1 to your computer and use it in GitHub Desktop.
Save zhimoe/7c52902a906416e1a41b8f8f1367d7e1 to your computer and use it in GitHub Desktop.
elasticsearch 6 sample data
#PUT entinfoindex
{
"settings": {
"number_of_shards": 1,
"number_of_replicas": 0,
"index": {
"analysis": {
"analyzer": {
"default": {
"tokenizer": "ik_smart"
},
"default_search": {
"tokenizer": "ik_smart"
}
}
}
}
},
"mappings": {
"_doc": {
"properties": {
"entNm": {
"type": "text"
},
"lglRepNm": {
"type": "text"
},
"status": {
"type": "text"
},
"uniSclCrdCd": {
"type": "keyword"
},
"estdDate": {
"type": "date"
}
}
}
}
}
# curl -s -H "Content-Type: application/json" -XPOST localhost:9200/_bulk --data-binary @entinfoindex.data.json
{"index":{"_index":"entinfoindex","_type":"_doc","_id":"914401012312493211"}}
{"entNm":"广州银行股份有限公司","status":"存续","uniSclCrdCd":"914401012312493211","lglRepNm":"黄子励","estdDate":"1996-09-11"}
{"index":{"_index":"entinfoindex","_type":"_doc","_id":"914403003592573984"}}
{"entNm":"深圳内容银行网络有限公司","status":"注销","uniSclCrdCd":"914403003592573984","lglRepNm":"高志敏","estdDate":"2015-11-09"}
{"index":{"_index":"entinfoindex","_type":"_doc","_id":"19375153-9"}}
{"entNm":"中国银行三水信用卡有限公司","status":"注销","uniSclCrdCd":"19375153-9","lglRepNm":"何惠珍","estdDate":"1993-03-18"}
{"index":{"_index":"entinfoindex","_type":"_doc","_id":"280002018"}}
{"entNm":"中国银行南海信用卡有限公司","status":"注销","uniSclCrdCd":"280002018","lglRepNm":"关小萍","estdDate":"1992-11-12"}
{"index":{"_index":"entinfoindex","_type":"_doc","_id":"91440300MA5ERJUE39"}}
{"entNm":"深圳市科美银行设备有限公司","status":"存续","uniSclCrdCd":"91440300MA5ERJUE39 ","lglRepNm":"孙蕊","estdDate":"2017-10-10"}
{"index":{"_index":"entinfoindex","_type":"_doc","_id":"4420002002598"}}
{"entNm":"中山市金盾银行设备有限公司","status":"吊销","uniSclCrdCd":"4420002002598","lglRepNm":"林建伟","estdDate":"1998-01-14"}
{"index":{"_index":"entinfoindex","_type":"_doc","_id":"914406001935588864"}}
{"entNm":"佛山市商业银行股份有限公司","status":"存续","uniSclCrdCd":"914406001935588864","lglRepNm":"邓向文","estdDate":"1997-07-07"}
{"index":{"_index":"entinfoindex","_type":"_doc","_id":"91440300MA5D841U4T"}}
{"entNm":"深圳人脉银行网络科技有限公司","status":"存续","uniSclCrdCd":"91440300MA5D841U4T","lglRepNm":"陈艳","estdDate":"2016-03-08"}
{"index":{"_index":"entinfoindex","_type":"_doc","_id":"91440600MA4UJYJN76"}}
{"entNm":"佛山垒亚银行设备科技有限公司","status":"存续","uniSclCrdCd":"91440600MA4UJYJN76","lglRepNm":"李灿华","estdDate":"2015-11-17"}
{"index":{"_index":"entinfoindex","_type":"_doc","_id":"91440300782792953J"}}
{"entNm":"深圳农村商业银行股份有限公司","status":"存续","uniSclCrdCd":"91440300782792953J","lglRepNm":"李光安","estdDate":"2005-12-09"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment