How can i create dynamically type in index ?
Or in _doc, create multiple _type
What's you use case ?
_type is deprecrecated since Elasticsearch 6.x and will be removed completely in 8
_doc is the defaut, but it's more a Rest endpoint
If you could explain more your issue, we may guide you in a different way to achieve it
Don't use _type
, create another, normal field in your doc called type
and just use that.
I’m using streamsets for reading excel file from ftp folder
And i want to store these files content into elasticsearch ( using http client )
The the problem is there are multiple files and create topic for each file will be hard
Now i want to create one index (data_index) and create a type for each file into this index with the filename
I want something like (if possible):
Index_data
ˋ
{
"file1":{
},
"file2":{
},
…
}
ˋ
There is a good example of before and after on this page
The tweet and user example.
Most likely you can just follow this pattern.
Thank you
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.