I have a customer that want to create an index with stored fields out of the _source, in the same place than "_index", "_type", "_score", "_id". It should be something like
{
"_index" : "MyIndex",
"_type" : "doc",
"_id" : "1",
"_score" : 1.0
"CustomField" : "TestData",
"CustomField2" : "TestData",
}
We need to create that type of index from API calls, we can't do anything manual in the process.
Is it possible? I have been searching for a while, but I don't found useful information.