Hello ,
I have a doubt at "index,type,id" for elastic search. I had a data and converted in json and seen code below like "index,type,id" of each&every data. How can I actually do it? I've checked some tutorials and could not understand.
Ex:{ "index" : { "_index" : "pokedex", "_type" : "pokemon", "_id" : "1" } }
{ "ndex": 1, "name": "Bulbasaur" }
{ "index" : { "_index" : "pokedex", "_type" : "pokemon", "_id" : "2" } }
{ "ndex": 2, "name": "Ivysaur" }
{ "index" : { "_index" : "pokedex", "_type" : "pokemon", "_id" : "3" } }
{ "ndex": 3, "name": "Venusaur"}
How did we take or automated this format like { "index" : { "_index" : "pokedex", "_type" : "pokemon", "_id" : "1" } }, here "id" will change everytime along with the data.
Thanks, advance.