Elasticsearch JAVA API is extremely extensive, it is obviously not realistic to introduce all the method meanings. From 1.x to 2.x, to 5.x, finally to 6.0, but also in just two or three years, I picked 5.4.0 version of the three parts of the usual use of sorting out, the meaning of the parameters of the method I do not introduce, Elasticsearch basic friends should be able to understand.
This essay is the first part: index management
1. Initialization and release of Transportclient
2. Create an empty index
3. Determine if the index/type exists
4. Update the number of replicas
5. Create a Map (fields are field an array groups. Fieldstypes to the corresponding field type array)
6. Close and open the index
7. Delete an index
8. Adding an alias to an index
9. Get a collection of all the index names in the cluster
10. Get the _type collection in an index
elasticsearch-5.x JAVA API (001)