INDEX_ROOT="lawsoc"
#INDEX_DATE="2015-10-06"
INDEX_DATE=$(date +%Y-%m-%d)
INDEX_NAME="${INDEX_ROOT}_${INDEX_DATE}"
DETAIL_NAME="person_detail"

curl -XPOST localhost:9200/"${INDEX_NAME}/${DETAIL_NAME}"/ -d '{
	"accreditations": [],
	"admitted_date": "1983/05/02",
	"areas_of_practice": [
		"Private client - wills and probate", 
		"Landlord and tenant - residential", 
		"Crime - general", 
		"Litigation - general", 
		"Immigration - nationality and citizenship", 
		"Conveyancing - residential"
		],
	"dx_address": "",
	"email": "nathan@nathanandcosolicitors.co.uk",
	"languages": [
		"German", 
		"Tamil", 
		"Sinhalese"
		],
	"name": "Vettivelu Sri Shanmuganathan",
	"person_id": "45600",
	"roles": "Partner",
	"solicitor_id": "475683",
	"sra_id": "115087",
	"tel": "0208 542 1805",
	"type": "SRA Regulated"
}'
