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": "2006/03/01",
    "areas_of_practice": ["Commercial property", "Private client - wills and probate", "Conveyancing - residential"],
    "dx_address": "",
    "email": "edlyons@lyonslaw.co.uk",
    "languages": ["English"],
    "name": "Anna Louise O\u0027Hara",
    "person_id": "45627",
    "roles": "Partner",
    "solicitor_id": "394386",
    "sra_id": "354299",
    "tel": "01179 506506",
    "type": "SRA Regulated"
}'
curl -XPOST localhost:9200/"${INDEX_NAME}/${DETAIL_NAME}"/ -d '{
    "accreditations": [],
    "admitted_date": null,
    "areas_of_practice": ["Mergers and acquisitions"],
    "dx_address": "",
    "email": "",
    "languages": ["French", "English"],
    "name": "Arthur De Baudry D \u0027Asson",
    "person_id": "48771",
    "roles": "Partner",
    "solicitor_id": "503632",
    "sra_id": "472021",
    "tel": "33 1 4421 9797",
    "type": "SRA Regulated"
}'
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"
}'
curl -XPOST localhost:9200/"${INDEX_NAME}/${DETAIL_NAME}"/ -d '{
    "accreditations": [],
    "admitted_date": "1969/01/11",
    "areas_of_practice": ["Landlord and tenant - residential", "Private client - wills and probate", "Commercial litigation", "Conveyancing - residential", "Commercial property", "Company / commercial"],
    "dx_address": "",
    "email": "info@layzellssolicitors.co.uk",
    "languages": ["English"],
    "name": "Jack Moritz Levy",
    "person_id": "45699",
    "roles": "Partner",
    "solicitor_id": "414392",
    "sra_id": "96483",
    "tel": "020 8444 0202",
    "type": "SRA Regulated"
}'
curl -XPOST localhost:9200/"${INDEX_NAME}/${DETAIL_NAME}"/ -d '{
    "accreditations": ["Criminal Litigation accreditation"],
    "admitted_date": "2006/04/03",
    "areas_of_practice": ["Crime - general", "Criminal Litigation Accredited", "Family", "Immigration - general"],
    "dx_address": "",
    "email": "solicitor.kl@credencelawgroup.co.uk",
    "languages": ["English"],
    "name": "Patricia Whiles",
    "person_id": "45669",
    "roles": "Sole",
    "solicitor_id": "471566",
    "sra_id": "357956",
    "tel": "01553 761252",
    "type": "SRA Regulated"
}'
curl -XPOST localhost:9200/"${INDEX_NAME}/${DETAIL_NAME}"/ -d '{
    "accreditations": [],
    "admitted_date": "2000/09/15",
    "areas_of_practice": ["Private client - wills and probate", "Private client - trusts", "Tax", "Charities"],
    "dx_address": "",
    "email": "worcester@parkinsonwright.co.uk",
    "languages": ["English"],
    "name": "Florence Sarah Russell Goodwin",
    "person_id": "45687",
    "roles": "Assistant",
    "solicitor_id": "462715",
    "sra_id": "231324",
    "tel": "01905 726789",
    "type": "SRA Regulated"
}'
curl -XPOST localhost:9200/"${INDEX_NAME}/${DETAIL_NAME}"/ -d '{
    "accreditations": [],
    "admitted_date": "2007/05/15",
    "areas_of_practice": ["Litigation - general", "Conveyancing - residential", "Personal injury"],
    "dx_address": "",
    "email": "markgregory@mglegalsolutions.co.uk",
    "languages": ["English"],
    "name": "Mark Gregory",
    "person_id": "45635",
    "roles": "Sole",
    "solicitor_id": "476377",
    "sra_id": "336566",
    "tel": "01995 602 129",
    "type": "SRA Regulated"
}'
curl -XPOST localhost:9200/"${INDEX_NAME}/${DETAIL_NAME}"/ -d '{
    "accreditations": ["Children - Childrens Representative accreditation"],
    "admitted_date": "2010/06/15",
    "areas_of_practice": ["Children", "Children - Childrens Representative Accredited", "Family", "Private client - wills and probate", "Litigation - general"],
    "dx_address": "",
    "email": "enquiries@cygnetlaw.co.uk",
    "languages": ["English"],
    "name": "Stacey Phoenix",
    "person_id": "45645",
    "roles": "Employee",
    "solicitor_id": "474826",
    "sra_id": "459263",
    "tel": "01642 777 680",
    "type": "SRA Regulated"
}'
curl -XPOST localhost:9200/"${INDEX_NAME}/${DETAIL_NAME}"/ -d '{
    "accreditations": [],
    "admitted_date": "1997/08/15",
    "areas_of_practice": ["Dispute resolution - civil/commercial mediation", "Commercial litigation", "Employment", "Professional negligence", "Insurance", "Construction"],
    "dx_address": "",
    "email": "S.Chessher@beale-law.com",
    "languages": ["Gaelic (Irish)"],
    "name": "Tara Patricia Cosgrove",
    "person_id": "48795",
    "roles": "Member",
    "solicitor_id": "464887",
    "sra_id": "263654",
    "tel": "",
    "type": "SRA Regulated"
}'
curl -XPOST localhost:9200/"${INDEX_NAME}/${DETAIL_NAME}"/ -d '{
    "accreditations": [],
    "admitted_date": "1978/07/15",
    "areas_of_practice": ["Commercial litigation", "Landlord and tenant - residential", "Professional negligence", "Personal injury", "Litigation - general", "Family"],
    "dx_address": "",
    "email": "enquiries@edward-harte.co.uk",
    "languages": ["English"],
    "name": "Colin Terence Wibley",
    "person_id": "48718",
    "roles": "Member",
    "solicitor_id": "470931",
    "sra_id": "114277",
    "tel": "01273 662750",
    "type": "SRA Regulated"
}'
