41 lines
577 B
Bash
41 lines
577 B
Bash
curl -XPUT http://localhost:9200/lawsoc -d '
|
|
{
|
|
"mappings": {
|
|
"office": {
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"email": {
|
|
"type": "string"
|
|
},
|
|
"facilities": {
|
|
"type": "string"
|
|
},
|
|
"tel": {
|
|
"type": "string"
|
|
},
|
|
"web": {
|
|
"type": "string"
|
|
},
|
|
"address": {
|
|
"type": "string"
|
|
},
|
|
"location": {
|
|
"type": "geo_point"
|
|
},
|
|
"solicitor_id": {
|
|
"type": "string"
|
|
},
|
|
"sra_id": {
|
|
"type": "string"
|
|
},
|
|
"dx_address": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
'
|