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.
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.
is it possible to share more info about it Mr.warkolm.
Same query --> like having json data and I want to do automatic indexing,type,id before the data same as like previous query - thanks advance
thanks for reply Mr.Christian_Dahlqvist. I had data in csv format and I need to convert into json along with automated "index,type,id".Is there any way like I mention in above query plz.
thanks for reply Mr.Christian_Dahlqvist, But I can not do any search or analytics of the data. So I decided to convert into json, but the only problem is about automated "index,type,id stuff". Hope you had understand the problem.
The format you showed is the bulk indexing format. Logstash will take care of that for you, as will the language clients. If you want to create a file with a bulk request and send this through curl, you will need to create it according to the described format, which includes specifying document IDs in the correct places unless you want IDs to be automatically generated for you by Elasticsearch.
yes, you are right. Since I have large data to analyse, how can we convert that along with each field automated { "index" : { "index" : "_index", "type" : "_type", "id" : "_id" } } and next row will be the actual data like { "ndex": 1, "name": "Bulbasaur" }.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.