curl -X PUT localhost:9200/scores -d '{"mappings":{"score":{"_all":{"enabled":false},"properties":{"log_id": {"type": "integer"},"updated":{"type":"date"},"users":{"type":"nested","properties":{"user_id":{"type":"string","index":"not_analyzed"},"user_won":{"type":"integer"},"user_bid":{"type": "integer"}}}}}}}'

curl -X POST localhost:9200/scores/score -d '{"log_id":1,"updated":1482208310,"users":[{"user_id":"foo1","user_won":1,"user_bid":4000},{"user_id":"foo2","user_won":0,"user_bid":1120},{"user_id":"foo3","user_won":0,"user_bid":345},{"user_id":"foo4","user_won":1,"user_bid":3200},{"user_id":"foo5","user_won":0,"user_bid":1250},{"user_id":"foo6","user_won":1,"user_bid":4100},{"user_id":"foo7","user_won":0,"user_bid":1900},{"user_id":"foo8","user_won":0,"user_bid":500}]}'

curl -X POST localhost:9200/scores/score -d '{"log_id":2,"updated":1482215310,"users":[{"user_id":"foo1","user_won":1,"user_bid":4000},{"user_id":"foo2","user_won":0,"user_bid":1120},{"user_id":"foo3","user_won":0,"user_bid":345},{"user_id":"foo4","user_won":1,"user_bid":3200},{"user_id":"foo5","user_won":0,"user_bid":1250},{"user_id":"foo6","user_won":1,"user_bid":4100},{"user_id":"foo7","user_won":0,"user_bid":1900},{"user_id":"foo8","user_won":1,"user_bid":500}]}'

curl -X POST localhost:9200/scores/score -d '{"log_id":3,"updated":1482221310,"users":[{"user_id":"foo1","user_won":0,"user_bid":4000},{"user_id":"foo2","user_won":0,"user_bid":1120},{"user_id":"foo3","user_won":0,"user_bid":345},{"user_id":"foo4","user_won":1,"user_bid":3200},{"user_id":"foo5","user_won":0,"user_bid":1250},{"user_id":"foo6","user_won":0,"user_bid":4100},{"user_id":"foo7","user_won":0,"user_bid":1900},{"user_id":"foo8","user_won":0,"user_bid":500}]}'

curl -X POST localhost:9200/scores/score -d '{"log_id":4,"updated":1482228310,"users":[{"user_id":"foo1","user_won":0,"user_bid":4000},{"user_id":"foo2","user_won":1,"user_bid":1120},{"user_id":"foo3","user_won":0,"user_bid":345},{"user_id":"foo4","user_won":0,"user_bid":3200},{"user_id":"foo5","user_won":1,"user_bid":1250},{"user_id":"foo6","user_won":0,"user_bid":4100},{"user_id":"foo7","user_won":1,"user_bid":1900},{"user_id":"foo8","user_won":0,"user_bid":500}]}'

curl -X POST localhost:9200/scores/score -d '{"log_id":5,"updated":1482231310,"users":[{"user_id":"foo1","user_won":1,"user_bid":4000},{"user_id":"foo2","user_won":0,"user_bid":1120},{"user_id":"foo3","user_won":0,"user_bid":345},{"user_id":"foo4","user_won":1,"user_bid":3200},{"user_id":"foo5","user_won":0,"user_bid":1250},{"user_id":"foo6","user_won":1,"user_bid":4100},{"user_id":"foo7","user_won":0,"user_bid":1900},{"user_id":"foo8","user_won":0,"user_bid":500}]}'

curl -X POST localhost:9200/scores/score -d '{"log_id":6,"updated":1482238310,"users":[{"user_id":"foo1","user_won":0,"user_bid":4000},{"user_id":"foo2","user_won":1,"user_bid":1120},{"user_id":"foo3","user_won":0,"user_bid":345},{"user_id":"foo4","user_won":1,"user_bid":3200},{"user_id":"foo5","user_won":0,"user_bid":1250},{"user_id":"foo6","user_won":0,"user_bid":4100},{"user_id":"foo7","user_won":1,"user_bid":1900},{"user_id":"foo8","user_won":0,"user_bid":500}]}'

curl -X POST localhost:9200/scores/score -d '{"log_id":7,"updated":1482240310,"users":[{"user_id":"foo1","user_won":0,"user_bid":4000},{"user_id":"foo2","user_won":1,"user_bid":1120},{"user_id":"foo3","user_won":0,"user_bid":345},{"user_id":"foo4","user_won":1,"user_bid":3200},{"user_id":"foo5","user_won":0,"user_bid":1250},{"user_id":"foo6","user_won":1,"user_bid":4100},{"user_id":"foo7","user_won":1,"user_bid":1900},{"user_id":"foo8","user_won":0,"user_bid":500}]}'

curl -X POST localhost:9200/scores/score -d '{"log_id":8,"updated":1482241310,"users":[{"user_id":"foo1","user_won":0,"user_bid":4000},{"user_id":"foo2","user_won":1,"user_bid":1120},{"user_id":"foo3","user_won":1,"user_bid":345},{"user_id":"foo4","user_won":0,"user_bid":3200},{"user_id":"foo5","user_won":0,"user_bid":1250},{"user_id":"foo6","user_won":1,"user_bid":4100},{"user_id":"foo7","user_won":0,"user_bid":1900},{"user_id":"foo8","user_won":1,"user_bid":500}]}'

curl -X POST localhost:9200/scores/score -d '{"log_id":9,"updated":1482242310,"users":[{"user_id":"foo1","user_won":1,"user_bid":4000},{"user_id":"foo2","user_won":0,"user_bid":1120},{"user_id":"foo3","user_won":0,"user_bid":345},{"user_id":"foo4","user_won":1,"user_bid":3200},{"user_id":"foo5","user_won":0,"user_bid":1250},{"user_id":"foo6","user_won":1,"user_bid":4100},{"user_id":"foo7","user_won":0,"user_bid":1900},{"user_id":"foo8","user_won":1,"user_bid":500}]}'

curl -X POST localhost:9200/scores/score -d '{"log_id":10,"updated":1482243310,"users":[{"user_id":"foo1","user_won":1,"user_bid":4000},{"user_id":"foo2","user_won":1,"user_bid":1120},{"user_id":"foo3","user_won":0,"user_bid":345},{"user_id":"foo4","user_won":0,"user_bid":3200},{"user_id":"foo5","user_won":0,"user_bid":1250},{"user_id":"foo6","user_won":0,"user_bid":4100},{"user_id":"foo7","user_won":0,"user_bid":1900},{"user_id":"foo8","user_won":1,"user_bid":500}]}'

curl -X POST localhost:9200/scores/score -d '{"log_id":11,"updated":1482248310,"users":[{"user_id":"foo1","user_won":0,"user_bid":4000},{"user_id":"foo2","user_won":0,"user_bid":1120},{"user_id":"foo3","user_won":0,"user_bid":345},{"user_id":"foo4","user_won":1,"user_bid":3200},{"user_id":"foo5","user_won":1,"user_bid":1250},{"user_id":"foo6","user_won":1,"user_bid":4100},{"user_id":"foo7","user_won":0,"user_bid":1900},{"user_id":"foo8","user_won":1,"user_bid":500}]}'
