lawsoc-scraper/test/lawsoc_example_curl-elastic.../create_index-base.sh

87 lines
1.4 KiB
Bash

curl -XPUT http://localhost:9200/lawsoc_2015-10-05/ -d '
{
"mappings": {
"office_detail":
{"properties":
{"address":{
"type":"string"
},
"dx_address":{
"type":"string"
},
"email":{
"type":"string"
},
"facilities":{
"type":"string"
},
"location":{
"type":"geo_point"
},
"name":{
"type":"string"
},
"solicitor_id":{
"type":"string"
},
"sra_id":{
"type":"string"
},
"tel":{
"type":"string"
},
"type":{
"type":"string"
}
,"web":{
"type":"string"}
}
},
"person_detail":{
"properties":{
"accreditations":{
"type":"string"
},
"admitted_date":{
"type":"date",
"format":"yyyy/MM/dd HH:mm:ss||yyyy/MM/dd"
},
"areas_of_practice":{
"type":"string"},
"dx_address":{
"type":"string"
},
"email":{
"type":"string"
},
"languages":{
"type":"string"
},
"name":{
"type":"string"
},
"person_id":{
"type":"string"
},
"roles":{
"type":"string"
},
"solicitor_id":{
"type":"string"
},
"sra_id":{
"type":"string"
},
"tel":{
"type":"string"
},
"type":{
"type":"string"
}
}
}
}
}
}
'