elasticsearch-5.x JAVA API (001)

Source: Internet
Author: User

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)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.