above that's referring to the docs,
I am quite confusing here(what is _doc means here)
So I am intent to replace _doc to students, because students is my table name(in elastic world typename)
probably I misused the word typename
below is what I want as a result for each document _index: "test", _type: "students"
As your said:
Put "typename": "student" in your document.
I don't really know
where should I put my "typename": "student" to.
And how to achieve my purpose initialize a index with a typename(table name) as well as set the mapping of the typename's fields
As I have been saying - Do Not Use Types. They will be removed very soon.
If you use this type then you will need to make more changes in the very near future.
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.