- برای این منظور در داخل Kibana به شکل زیر عمل میکنیم.
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
POST /homayouni_index/default { "first name": "Iman", "last name": "Homayouni", "email": { "server": "gmail.com", "address": "homayouni@gmail.com" } } { "_index" : "homayouni_index", "_type" : "default", <span style="color: #ff0000;"><strong>"_id" : "gXW--XoB2HniGXspHsqN",</strong></span> "_version" : 1, "result" : "created", "_shards" : { "total" : 2, "successful" : 1, "failed" : 0 }, "_seq_no" : 0, "_primary_term" : 1 } |
- میتوان یک ID مشخص برای Document در نظر گرفت. برای این منظور به صورت زیر عمل میکنیم.
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
POST /homayouni_index/default/<span style="color: #ff0000;"><strong>iman23</strong></span> { "first name": "Iman", "last name": "Homayouni", "email": { "server": "gmail.com", "address": "homayouni@gmail.com" } } { "_index" : "homayouni_index", "_type" : "default", <span style="color: #ff0000;"><strong> "_id" : "iman23",</strong></span> "_version" : 1, "result" : "created", "_shards" : { "total" : 2, "successful" : 1, "failed" : 0 }, "_seq_no" : 1, "_primary_term" : 1 } |