Today is June 7, 2019, fucking happened
Ali cloud es product 6.3.2, actually disabled transportClient (default port 9300), I have developed a good test environment. On a pre-made ignorant force .. FML?
how to do ...
find a variety of information
However, and eggs ..
3.2.0.M4 elasticsearch version 6.7.2 is used by default
hateful is valid, since version 6.7 adds a parameter, include_type_name, because the 8.0 version to completely remove type.
Increasing this field, so I call elasticsearchTemplete create the index because when the bombing .. api automatically with the parameters I just said
public static final String INCLUDE_TYPE_NAME_PARAMETER = "include_type_name";
Then I began to do things
Download Source
1. warehouse address into your address PW
2. The comments section of code. Because the package will complain when
3. Find all local codes use the default are to true
ps, jdk version 12, gradle version 5.4.1
4. After the change, packaging, coupled with this argument, the official compiler package
ps, if the PW has 6.7.2 version of the first went delete. Then go to a local warehouse, delete the .jar-release version is not allowed to cover
this point, the bottom section has been modified
Let's change the second module
Download Source spring data es and modify their own warehouses
Then so what needs to change himself to the top of
that the next version of the m4 usage
esconfig
repository usage
Official intend to support alias, but the m4 version download. Did not see support code, I realized myself
This interface ElasticsearchPersistentEntity new alias () method
Add the following code to achieve Class
RestTemplete achieve alias
Upload, packaging, perfect
Reproduced in: https: //www.jianshu.com/p/de6521633f4b