Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
sample data
PUT transactions

POST transactions/_bulk
{"index": {"_id": 1}}
{"id": 1, "user_id": 5, "transaction_date": "2022-05-04T11:18:00Z"}
{"index": {"_id": 2}}
{"id": 2, "user_id": 5, "transaction_date": "2022-05-04T10:36:00Z"}
{"index": {"_id": 3}}
{"id": 3, "user_id": 3, "transaction_date": "2022-05-04T10:23:00Z"}
{"index": {"_id": 4}}
{"id": 4, "user_id": 3, "transaction_date": "2022-05-03T12:42:00Z"}
{"index": {"_id": 5}}
{"id": 5, "user_id": 1, "transaction_date": "2022-05-02T12:42:00Z"}
{"index": {"_id": 6}}
{"id": 6, "user_id": 4, "transaction_date": "2022-05-03T11:10:00Z"}
{"index": {"_id": 7}}
{"id": 7, "user_id": 4, "transaction_date": "2022-05-05T12:10:00Z"}
{"index": {"_id": 8}}
{"id": 8, "user_id": 5, "transaction_date": "2022-05-05T13:34:00Z"}
{"index": {"_id": 9}}
{"id": 9, "user_id": 2, "transaction_date": "2022-05-01T11:23:00Z"}
{"index": {"_id": 10}}
{"id": 10, "user_id": 3, "transaction_date": "2022-05-02T14:25:00Z"}
{"index": {"_id": 11}}
{"id": 11, "user_id": 3, "transaction_date": "2022-05-03T11:48:00Z"}
{"index": {"_id": 12}}
{"id": 12, "user_id": 5, "transaction_date": "2022-05-05T14:50:00Z"}
{"index": {"_id": 13}}
{"id": 13, "user_id": 3, "transaction_date": "2022-05-01T13:45:00Z"}
{"index": {"_id": 14}}
{"id": 14, "user_id": 3, "transaction_date": "2022-05-01T10:40:00Z"}
{"index": {"_id": 15}}
{"id": 15, "user_id": 3, "transaction_date": "2022-05-01T14:16:00Z"}
{"index": {"_id": 16}}
{"id": 16, "user_id": 1, "transaction_date": "2022-05-02T15:50:00Z"}
{"index": {"_id": 17}}
{"id": 17, "user_id": 3, "transaction_date": "2022-05-02T11:24:00Z"}
{"index": {"_id": 18}}
{"id": 18, "user_id": 1, "transaction_date": "2022-05-04T15:16:00Z"}
{"index": {"_id": 19}}
{"id": 19, "user_id": 4, "transaction_date": "2022-05-02T15:36:00Z"}
{"index": {"_id": 20}}
{"id": 20, "user_id": 4, "transaction_date": "2022-05-02T14:14:00Z"}
{"index": {"_id": 21}}
{"id": 21, "user_id": 1, "transaction_date": "2022-05-04T15:47:00Z"}
{"index": {"_id": 22}}
{"id": 22, "user_id": 5, "transaction_date": "2022-05-03T09:19:00Z"}
{"index": {"_id": 23}}
{"id": 23, "user_id": 5, "transaction_date": "2022-05-01T14:24:00Z"}
{"index": {"_id": 24}}
{"id": 24, "user_id": 2, "transaction_date": "2022-05-04T15:12:00Z"}
{"index": {"_id": 25}}
{"id": 25, "user_id": 4, "transaction_date": "2022-05-01T14:21:00Z"}
{"index": {"_id": 26}}
{"id": 26, "user_id": 4, "transaction_date": "2022-05-05T10:32:00Z"}
{"index": {"_id": 27}}
{"id": 27, "user_id": 3, "transaction_date": "2022-05-05T10:21:00Z"}
{"index": {"_id": 28}}
{"id": 28, "user_id": 1, "transaction_date": "2022-05-02T13:44:00Z"}
{"index": {"_id": 29}}
{"id": 29, "user_id": 4, "transaction_date": "2022-05-01T15:38:00Z"}
{"index": {"_id": 30}}
{"id": 30, "user_id": 3, "transaction_date": "2022-05-04T12:46:00Z"}
{"index": {"_id": 31}}
{"id": 31, "user_id": 5, "transaction_date": "2022-05-04T13:40:00Z"}
{"index": {"_id": 32}}
{"id": 32, "user_id": 2, "transaction_date": "2022-05-04T11:26:00Z"}
{"index": {"_id": 33}}
{"id": 33, "user_id": 2, "transaction_date": "2022-05-05T10:10:00Z"}
{"index": {"_id": 34}}
{"id": 34, "user_id": 1, "transaction_date": "2022-05-02T11:40:00Z"}
{"index": {"_id": 35}}
{"id": 35, "user_id": 5, "transaction_date": "2022-05-02T13:32:00Z"}
{"index": {"_id": 36}}
{"id": 36, "user_id": 2, "transaction_date": "2022-05-05T12:12:00Z"}
{"index": {"_id": 37}}
{"id": 37, "user_id": 3, "transaction_date": "2022-05-05T10:21:00Z"}
{"index": {"_id": 38}}
{"id": 38, "user_id": 1, "transaction_date": "2022-05-04T13:44:00Z"}
{"index": {"_id": 39}}
{"id": 39, "user_id": 3, "transaction_date": "2022-05-04T15:22:00Z"}
{"index": {"_id": 40}}
{"id": 40, "user_id": 4, "transaction_date": "2022-05-05T12:10:00Z"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment