Please tell the template for creating index of the following JSON data

I am getting the data from a server in the following form
[["5666", "8888", "8888"], ["88888", "666", "777"]]
when viewed as json they become

0:
0: 5666
1: 8888
2: 8888
1:
0: 88888
1: 666
2: 777

I need to write a Template in Elasticsearch and which I wrote as which is successful

curl -XPUT "http://localhost:9200/my_index" -H 'Content-Type: application/json' -d'
{
"settings" : {
"number_of_shards" : 1
},
"table" : {
"type1" : {
"properties" : {
"column1" : { "type" : "text" },
"column3" : { "type" : "text" },
"column3" : { "type" : "text" }

        }
    }
}

}'

problem is when I write data using python it does not write it on the template.

return Response (json.dump(data))
es.index(index='my_index', doc_type = 'table')

No luck in the index update :frowning: Is my template incorrect or method of sending data to the template , Please correct me

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.