bbossgroups / bboss-elasticsearch

the best elasticsearch highlevel java rest client api-----bboss
Apache License 2.0
527 stars 139 forks source link

index的type问题 #37

Open syzbiaoren opened 4 years ago

syzbiaoren commented 4 years ago

es7 8之后 type基本上就废除了,以后也不会有了,那么相应的代码是否也要做调整

yin-bp commented 4 years ago

bboss同时提供了带type的api和不带type的api,开发人员可以根据使用的elasticsearch的版本来决定使用相关的api

bboss 对elasticsearch 7,8相关的文档: https://esdoc.bbossgroups.com/#/Elasticsearch-7-API

elasticsearch 7操作的java 案例代码: https://github.com/bbossgroups/elasticsearch-example/blob/master/src/main/java/org/bboss/elasticsearchtest/crud/DocumentCRUD7.java

https://github.com/bbossgroups/elasticsearch-example/blob/master/src/main/java/org/bboss/elasticsearchtest/crud/DemoWithES7IndexUseBatch.java

https://github.com/bbossgroups/elasticsearch-example/blob/master/src/main/java/org/bboss/elasticsearchtest/crud/DemoWithES7IndexSimple.java

https://github.com/bbossgroups/elasticsearch-example/blob/master/src/main/java/org/bboss/elasticsearchtest/HighlightSearch7.java

https://github.com/bbossgroups/springboot-elasticsearch-webservice/blob/master/src/main/java/com/example/esbboss/service/DocumentCRUD7.java