diff --git a/agent/src/main/resources/profiles/local/pinpoint.config b/agent/src/main/resources/profiles/local/pinpoint.config
index 60e894899588..9a4383c45ebf 100644
--- a/agent/src/main/resources/profiles/local/pinpoint.config
+++ b/agent/src/main/resources/profiles/local/pinpoint.config
@@ -1196,16 +1196,6 @@ profiler.elasticsearch.enabled=true
profiler.elasticsearch.recordDsl=true
profiler.elasticsearch.recordESVersion=false
-###########################################################
-# ElasticsearchBBoss
-###########################################################
-profiler.elasticsearchbboss.enabled=true
-profiler.elasticsearchbboss.recordResult=false
-profiler.elasticsearchbboss.recordArgs=true
-profiler.elasticsearchbboss.recordDsl=true
-profiler.elasticsearchbboss.recordESVersion=true
-profiler.elasticsearchbboss.recordResponseHandlerClass=false
-profiler.elasticsearchbboss.maxDslSize=50000
###########################################################
# JDK CompletableFuture
diff --git a/agent/src/main/resources/profiles/release/pinpoint.config b/agent/src/main/resources/profiles/release/pinpoint.config
index 403dbe7cd760..3070c489e9fc 100644
--- a/agent/src/main/resources/profiles/release/pinpoint.config
+++ b/agent/src/main/resources/profiles/release/pinpoint.config
@@ -1219,16 +1219,6 @@ profiler.elasticsearch.enabled=true
profiler.elasticsearch.recordDsl=true
profiler.elasticsearch.recordESVersion=false
-###########################################################
-# ElasticsearchBBoss
-###########################################################
-profiler.elasticsearchbboss.enabled=true
-profiler.elasticsearchbboss.recordResult=false
-profiler.elasticsearchbboss.recordArgs=true
-profiler.elasticsearchbboss.recordDsl=true
-profiler.elasticsearchbboss.recordESVersion=true
-profiler.elasticsearchbboss.recordResponseHandlerClass=false
-profiler.elasticsearchbboss.maxDslSize=50000
###########################################################
# JDK CompletableFuture
diff --git a/commons/src/main/java/com/navercorp/pinpoint/common/trace/ServiceType.java b/commons/src/main/java/com/navercorp/pinpoint/common/trace/ServiceType.java
index dc41d09ee7d6..2e3dada8fc2e 100644
--- a/commons/src/main/java/com/navercorp/pinpoint/common/trace/ServiceType.java
+++ b/commons/src/main/java/com/navercorp/pinpoint/common/trace/ServiceType.java
@@ -231,8 +231,8 @@
*
9160 | GRPC |
* 9161 | GRPC_INTERNAL |
* 9162 | GRPC_SERVER_INTERNAL |
- * 9201 | ElasticsearchBBoss |
- * 9202 | ElasticsearchBBossExecutor |
+ * 9201 | ElasticsearchBBoss @Deprecated |
+ * 9202 | ElasticsearchBBossExecutor @Deprecated |
* 9203 | ELASTICSEARCH |
* 9204 | ELASTICSEARCH_HIGHLEVEL_CLIENT |
* 9205 | ELASTICSEARCH8 |
diff --git a/commons/src/main/java/com/navercorp/pinpoint/common/trace/ServiceTypeProperty.java b/commons/src/main/java/com/navercorp/pinpoint/common/trace/ServiceTypeProperty.java
index 2bfdbe2a1f66..7d54ed6257b4 100644
--- a/commons/src/main/java/com/navercorp/pinpoint/common/trace/ServiceTypeProperty.java
+++ b/commons/src/main/java/com/navercorp/pinpoint/common/trace/ServiceTypeProperty.java
@@ -24,5 +24,6 @@ public enum ServiceTypeProperty {
QUEUE,
RECORD_STATISTICS,
INCLUDE_DESTINATION_ID,
+ @Deprecated
ALIAS
}
diff --git a/doc/modules.md b/doc/modules.md
index b8b9e46fbbd9..7ed3e5645b19 100644
--- a/doc/modules.md
+++ b/doc/modules.md
@@ -55,7 +55,6 @@
| Jackson Databind | jackson-databind | 2.0.6 | 2.12.3 | | |
| MariaDB Connector/J | mariadb-java-client | 1.3.0 | 2.7.2 | | |
| MongoDB Java Driver | mongodb-driver | 3.0.0 | 3.12.8 | | |
-| [Elasticsearch](https://github.com/pinpoint-apm/pinpoint/tree/master/plugins/elasticsearch-bboss) | bboss-elasticsearch-rest-jdbc | 5.6.9 | 5.8.2 | | |
| Elasticsearch | elasticsearch-rest-high-level-client | 6.0.0 | 6.8.15 | | |
| Datastax Java Driver | cassandra-driver-core | 2.0.10 | 3.11.0 | | |
| Druid | druid | 1.0.0 | 1.2.6 | | |
diff --git a/plugins-it/elasticsearch-bbose-it/pom.xml b/plugins-it/elasticsearch-bbose-it/pom.xml
deleted file mode 100644
index c28502e3b663..000000000000
--- a/plugins-it/elasticsearch-bbose-it/pom.xml
+++ /dev/null
@@ -1,92 +0,0 @@
-
-
-
-
- 4.0.0
-
- com.navercorp.pinpoint
- pinpoint-plugins-it
- 2.5.0-SNAPSHOT
-
-
- pinpoint-elasticsearch-bboss-plugin-it
-
- jar
-
-
- 1.8
- ${env.JAVA_8_HOME}
-
-
-
-
- com.bbossgroups.plugins
- bboss-elasticsearch-rest-jdbc
- 5.6.9
- test
-
-
- org.slf4j
- slf4j-log4j12
-
-
- com.bbossgroups
- bboss-persistent
-
-
-
-
- org.elasticsearch.client
- elasticsearch-rest-high-level-client
- 7.3.0
- test
-
-
- pl.allegro.tech
- embedded-elasticsearch
- 2.10.0
- test
-
-
-
- com.navercorp.pinpoint
- pinpoint-plugin-it-utils
- ${project.version}
-
-
-
-
-
-
-
- org.apache.maven.plugins
- maven-surefire-plugin
-
- true
-
-
-
- org.apache.maven.plugins
- maven-failsafe-plugin
-
- ${env.JAVA_8_HOME}/bin/java
-
-
-
-
-
diff --git a/plugins-it/elasticsearch-bbose-it/src/test/java/com/navercorp/pinpoint/plugin/elasticsearchbboss/Car.java b/plugins-it/elasticsearch-bbose-it/src/test/java/com/navercorp/pinpoint/plugin/elasticsearchbboss/Car.java
deleted file mode 100644
index bf0c1fd0ce76..000000000000
--- a/plugins-it/elasticsearch-bbose-it/src/test/java/com/navercorp/pinpoint/plugin/elasticsearchbboss/Car.java
+++ /dev/null
@@ -1,63 +0,0 @@
-/*
- * Copyright 2018 Naver Corp.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance,the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package com.navercorp.pinpoint.plugin.elasticsearchbboss;
-
-import com.frameworkset.orm.annotation.ESId;
-
-/**
- * Description: Car PO along to cars indice mapping struction
- *
- * @author yinbp[yin-bp@163.com]
- */
-public class Car {
- @ESId(persistent = true, readSet = true)
- private String carId;
- private String manufacturer;
- private String model;
- private String description;
-
- public String getManufacturer() {
- return manufacturer;
- }
-
- public void setManufacturer(String manufacturer) {
- this.manufacturer = manufacturer;
- }
-
- public String getModel() {
- return model;
- }
-
- public void setModel(String model) {
- this.model = model;
- }
-
- public String getDescription() {
- return description;
- }
-
- public void setDescription(String description) {
- this.description = description;
- }
-
- public String getCarId() {
- return carId;
- }
-
- public void setCarId(String carId) {
- this.carId = carId;
- }
-}
\ No newline at end of file
diff --git a/plugins-it/elasticsearch-bbose-it/src/test/java/com/navercorp/pinpoint/plugin/elasticsearchbboss/ElasticsearchExecutor569IT.java b/plugins-it/elasticsearch-bbose-it/src/test/java/com/navercorp/pinpoint/plugin/elasticsearchbboss/ElasticsearchExecutor569IT.java
deleted file mode 100644
index b4da18352703..000000000000
--- a/plugins-it/elasticsearch-bbose-it/src/test/java/com/navercorp/pinpoint/plugin/elasticsearchbboss/ElasticsearchExecutor569IT.java
+++ /dev/null
@@ -1,38 +0,0 @@
-/*
- * Copyright 2018 NAVER Corp.
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package com.navercorp.pinpoint.plugin.elasticsearchbboss;
-
-
-import com.navercorp.pinpoint.pluginit.utils.AgentPath;
-import com.navercorp.pinpoint.test.plugin.Dependency;
-import com.navercorp.pinpoint.test.plugin.JvmVersion;
-import com.navercorp.pinpoint.test.plugin.PinpointAgent;
-import com.navercorp.pinpoint.test.plugin.PinpointPluginTestSuite;
-import org.junit.runner.RunWith;
-
-
-/**
- * @author yinbp[yin-bp@163.com]
- */
-
-@RunWith(PinpointPluginTestSuite.class)
-@PinpointAgent(AgentPath.PATH)
-@Dependency({"com.bbossgroups.plugins:bboss-elasticsearch-rest-jdbc:[5.6.9,5.8.3)",
- "pl.allegro.tech:embedded-elasticsearch:2.8.0"})
-@JvmVersion(8)
-public class ElasticsearchExecutor569IT extends ElasticsearchExecutorIT {
-
-
-}
\ No newline at end of file
diff --git a/plugins-it/elasticsearch-bbose-it/src/test/java/com/navercorp/pinpoint/plugin/elasticsearchbboss/ElasticsearchExecutorIT.java b/plugins-it/elasticsearch-bbose-it/src/test/java/com/navercorp/pinpoint/plugin/elasticsearchbboss/ElasticsearchExecutorIT.java
deleted file mode 100644
index 01bdee27ed41..000000000000
--- a/plugins-it/elasticsearch-bbose-it/src/test/java/com/navercorp/pinpoint/plugin/elasticsearchbboss/ElasticsearchExecutorIT.java
+++ /dev/null
@@ -1,294 +0,0 @@
-/*
- * Copyright 2018 NAVER Corp.
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package com.navercorp.pinpoint.plugin.elasticsearchbboss;
-
-
-import com.navercorp.pinpoint.bootstrap.plugin.test.PluginTestVerifier;
-import com.navercorp.pinpoint.bootstrap.plugin.test.PluginTestVerifierHolder;
-import com.navercorp.pinpoint.test.plugin.shared.AfterSharedClass;
-import com.navercorp.pinpoint.test.plugin.shared.BeforeSharedClass;
-
-import org.frameworkset.elasticsearch.ElasticSearchHelper;
-import org.frameworkset.elasticsearch.client.ClientInterface;
-import org.frameworkset.elasticsearch.entity.ESDatas;
-import org.junit.BeforeClass;
-import org.junit.Test;
-import pl.allegro.tech.embeddedelasticsearch.EmbeddedElastic;
-import pl.allegro.tech.embeddedelasticsearch.PopularProperties;
-
-import java.io.IOException;
-import java.lang.reflect.Method;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-
-import static com.navercorp.pinpoint.bootstrap.plugin.test.Expectations.event;
-import static java.util.concurrent.TimeUnit.MINUTES;
-
-
-/**
- * @author yinbp[yin-bp@163.com]
- */
-
-
-public abstract class ElasticsearchExecutorIT {
- private static EmbeddedElastic embeddedElastic;
- private static ClientInterface clientInterface;
- private static ClientInterface configRestClientInterface;
- private String serviceType = "ElasticsearchBBoss";
-
- @BeforeSharedClass
- public static void sharedSetup() throws IOException, InterruptedException {
- // BBoss support elasticsearch 1.x,2.x,5.x,6.x,7.x,+
- // and we use elasticsearch 6.3.0 to test the Elasticsearch BBoss client plugin.
-
- // BBoss connect elasticsearch use localhost and http port 9200 default.
-
-// Here is a bboss web demo base spring boot and elasticsearch 5.x,6.x,7.x,8.x:
-// https://github.com/bbossgroups/es_bboss_web
-//
-// Here is a quickstart tutorial:
-// https://esdoc.bbossgroups.com/#/quickstart
- embeddedElastic = EmbeddedElastic.builder()
- .withElasticVersion("6.8.0")
- .withSetting(PopularProperties.HTTP_PORT, 9200)
- .withEsJavaOpts("-Xms128m -Xmx512m")
- .withStartTimeout(2, MINUTES)
- .build()
- .start();
- }
-
- @AfterSharedClass
- public static void sharedTearDown() {
- if (embeddedElastic != null) {
- embeddedElastic.stop();
- }
- }
-
- @BeforeClass
- public static void setUpBeforeClass() throws Exception {
- //Build a elasticsearch client instance(Return a single instance but multithreaded security) with dsl config file elasticsearchbboss/car-mapping.xml.
- configRestClientInterface = ElasticSearchHelper.getConfigRestClientUtil("elasticsearchbboss/car-mapping.xml");
- // Create an elasticsearch client interface instance with a specific Elasticserch datasource name and with dsl config file elasticsearchbboss/car-mapping.xml.
- //configRestClientInterface = ElasticSearchHelper.getConfigRestClientUtil("esdatasourceName","elasticsearchbboss/car-mapping.xml");
-
- //build a elasticsearch client instance(Return a single instance but multithreaded security) for do not need dsl or direct dsl operations.
- clientInterface = ElasticSearchHelper.getRestClientUtil();
- // Create an elasticsearch client interface instance with a specific Elasticserch datasource name
- //clientInterface = ElasticSearchHelper.getRestClientUtil("esdatasourceName");
-
- // A multidatasource spring boot demo: https://github.com/bbossgroups/es_bboss_web/tree/multiesdatasource
- }
-
- @Test
- public void indiceCreate() throws Exception {
- PluginTestVerifier verifier = PluginTestVerifierHolder.getInstance();
- Class> configClass = Class.forName("org.frameworkset.elasticsearch.client.ConfigRestClientUtil");
- Method createIndiceMappingMethod = configClass.getMethod("createIndiceMapping", String.class, String.class);
- try {
- configRestClientInterface.createIndiceMapping("cars", "createCarIndice");
-
- } catch (Exception ignored) {
-
- }
-
- verifier.verifyTrace(event(serviceType, createIndiceMappingMethod));
-
-
- }
-
- @Test
- public void indiceDrop() throws Exception {
- PluginTestVerifier verifier = PluginTestVerifierHolder.getInstance();
- Class> configClass = Class.forName("org.frameworkset.elasticsearch.client.ConfigRestClientUtil");
- Method dropIndiceMethod = configClass.getMethod("dropIndice", String.class);
- try {
- configRestClientInterface.dropIndice("cars");
- } catch (Exception ignored) {
-
- }
-
- verifier.verifyTrace(event(serviceType, dropIndiceMethod));
-
-
- }
-
- @Test
- public void indiceExist() throws Exception {
-
- //Validate the indice twitter exist or not
- PluginTestVerifier verifier = PluginTestVerifierHolder.getInstance();
-
- //Validate the indice cars exist or not
- boolean existIndice = clientInterface.existIndice("cars");
-
-// Assert.assertEquals(existIndice,true);
- Class> restClientUtilClass = Class.forName("org.frameworkset.elasticsearch.client.RestClientUtil");
- Method existIndiceMethod = restClientUtilClass.getMethod("existIndice", String.class);
- verifier.verifyTrace(event(serviceType, existIndiceMethod));
-
- }
-
- @Test
- public void addDocument() throws Exception {
- Class> restClientUtilClass = Class.forName("org.frameworkset.elasticsearch.client.RestClientUtil");
- Method addDocumentMethod = restClientUtilClass.getDeclaredMethod("addDocument", String.class, String.class,
- Object.class, String.class);
- PluginTestVerifier verifier = PluginTestVerifierHolder.getInstance();
- Car car = new Car();
- //set carid as the index documentid
- car.setCarId("1");
- car.setManufacturer("Volkswagenwerk");
- car.setModel("passat1.8T");
- car.setDescription("passat 2018");
-
- //add data to cars/car indice. Use force refresh when test case,but product mode does not use forcerefresh
- // and should use:
- // clientInterface.addDocument("cars",car).
- try {
- clientInterface.addDocument("cars", "car", car, "refresh=true");
- } catch (Exception ignored) {
-
- }
-
- verifier.verifyTrace(event(serviceType, addDocumentMethod));
-
- }
-
- @Test
- public void getDocument() throws Exception {
- PluginTestVerifier verifier = PluginTestVerifierHolder.getInstance();
- //get car by document id "1"
- try {
- Car car = clientInterface.getDocument("cars", "1", Car.class);
- } catch (Exception ignored) {
-
- }
-
-
- Class> restClientUtilClass = Class.forName("org.frameworkset.elasticsearch.client.RestClientUtil");
- Method getDocumentMethod = restClientUtilClass.getDeclaredMethod("getDocument", String.class,
- String.class, Class.class);
- verifier.verifyTrace(event(serviceType, getDocumentMethod));
- }
-
- @Test
- public void bulkDocuments() throws Exception {
- PluginTestVerifier verifier = PluginTestVerifierHolder.getInstance();
- List cars = new ArrayList<>();
- Car car = new Car();
- //set carid as the index documentid
- car.setCarId("2");
- car.setManufacturer("Volkswagenwerk");
- car.setModel("passat1.8T");
- car.setDescription("passat 2018");
- cars.add(car);
- car = new Car();
- //set carid as the index documentid
- car.setCarId("3");
- car.setManufacturer("Volkswagenwerk");
- car.setModel("2.0T");
- car.setDescription("passat 2019");
- cars.add(car);
- //add datas to cars/car indice.Use force refresh when test case,but product mode does not use forcerefresh
- // and should use:
- // clientInterface.addDocuments("cars",cars);
-
- try {
- clientInterface.addDocuments("cars", "car", cars, "refresh=true");
- } catch (Exception ignored) {
-
- }
- Class> restClientUtilClass = Class.forName("org.frameworkset.elasticsearch.client.RestClientUtil");
- Method addDocumentsMethod = restClientUtilClass.getDeclaredMethod("addDocuments", String.class, String.class,
- List.class, String.class);
- verifier.verifyTrace(event(serviceType, addDocumentsMethod));
-
- }
-
-
- @Test
- public void searchDocuments() throws Exception {
- PluginTestVerifier verifier = PluginTestVerifierHolder.getInstance();
- try {
- Map condition = new HashMap<>();
- //set description as search condition
- condition.put("description", "passat");
-
- //search data to cars/car indice that match condition with a simple query dsl named testSearch defined in elasticsearchbboss/car-mapping.xml.
- ESDatas carESDatas = configRestClientInterface.searchList("cars/_search", "testSearch", condition, Car.class);
- //datas that match condition
- List cars = carESDatas.getDatas();
- //totalsize that match condition
- long totalSize = carESDatas.getTotalSize();
- } catch (Exception ignored) {
-
- }
-
- Class> configClass = Class.forName("org.frameworkset.elasticsearch.client.ConfigRestClientUtil");
- Method searchListMethod = configClass.getDeclaredMethod("searchList", String.class,
- String.class, Map.class, Class.class);
- verifier.verifyTrace(event(serviceType, searchListMethod));
- }
-
- @Test
- public void updateDocument() throws Exception {
- PluginTestVerifier verifier = PluginTestVerifierHolder.getInstance();
- Car car = new Car();
- //set carid as the index documentid
- car.setCarId("1");
- car.setManufacturer("Volkswagenwerk");
- // Update model from 1.4T to 1.0T
- car.setModel("1.0T");
- car.setDescription("passat 2017");
- // Update data on cars/car indice that document id is 1.
- // Use force refresh when test case,but product mode does not use forcerefresh
- // and should use:
- // clientInterface.updateDocument("cars","1",car);
-
- try {
- clientInterface.updateDocument("cars", "car", "1", car, "refresh=true");
- } catch (Exception ignored) {
-
- }
- Class> restClientUtilClass = Class.forName("org.frameworkset.elasticsearch.client.RestClientUtil");
- Method updateDocumentMethod = restClientUtilClass.getDeclaredMethod("updateDocument", String.class, String.class,
- Object.class, Object.class, String.class);
- verifier.verifyTrace(event(serviceType, updateDocumentMethod));
-
- }
-
- @Test
- public void deleteDocument() throws Exception {
- PluginTestVerifier verifier = PluginTestVerifierHolder.getInstance();
- // Delete data on cars/car indice that document id is 1.
- // Use force refresh when test case,but product mode does not use forcerefresh
- // and should use:
- // clientInterface.deleteDocument("cars","1");
-
- try {
- clientInterface.deleteDocument("cars", "car", "1", "refresh=true");
- } catch (Exception ignored) {
-
- }
- Class> restClientUtilClass = Class.forName("org.frameworkset.elasticsearch.client.RestClientUtil");
- Method deleteDocument = restClientUtilClass.getDeclaredMethod("deleteDocument", String.class, String.class,
- String.class, String.class);
- verifier.verifyTrace(event(serviceType, deleteDocument));
-
- }
-
-}
\ No newline at end of file
diff --git a/plugins-it/elasticsearch-bbose-it/src/test/resources/elasticsearchbboss/car-mapping.xml b/plugins-it/elasticsearch-bbose-it/src/test/resources/elasticsearchbboss/car-mapping.xml
deleted file mode 100644
index b64824e9954b..000000000000
--- a/plugins-it/elasticsearch-bbose-it/src/test/resources/elasticsearchbboss/car-mapping.xml
+++ /dev/null
@@ -1,43 +0,0 @@
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/plugins-it/pom.xml b/plugins-it/pom.xml
index 2994ed751722..54fe7173aaec 100644
--- a/plugins-it/pom.xml
+++ b/plugins-it/pom.xml
@@ -38,7 +38,6 @@
cxf-it
druid-it
dubbo-it
- elasticsearch-bbose-it
elasticsearch-it
elasticsearch-7.16-it
fastjson-it
diff --git a/plugins/assembly/pom.xml b/plugins/assembly/pom.xml
index 8030604b2e1e..28b70a9d6355 100644
--- a/plugins/assembly/pom.xml
+++ b/plugins/assembly/pom.xml
@@ -335,11 +335,6 @@
com.navercorp.pinpoint
pinpoint-openwhisk-plugin
${project.version}
-
-
- com.navercorp.pinpoint
- pinpoint-elasticsearch-bboss-plugin
- ${project.version}
com.navercorp.pinpoint
diff --git a/plugins/elasticsearch-bboss/README.md b/plugins/elasticsearch-bboss/README.md
deleted file mode 100644
index d1aba2ce1fca..000000000000
--- a/plugins/elasticsearch-bboss/README.md
+++ /dev/null
@@ -1,155 +0,0 @@
-ElasticSearch is an Open Source (Apache 2), Distributed, RESTful, Search Engine built on top of Apache Lucene.
-
-This agent plugin is worked with elasticsearch bboss highlevel rest client [BBoss][bs].
-
-[BBoss][bs] is a best Java Highlevel Rest client for [ElasticSearch][es].
-
-
-If there is trace in the context, add context trace as span event.
-
-Some work pictures of this plugin:
-Elasticsearch Bboss work in tomcat
-![GitHub Logo](https://oscimg.oschina.net/oscnet/a6aa8b7e84db0437dd6cbff88bdf1160fab.jpg)
-![GitHub Logo](https://oscimg.oschina.net/oscnet/9665c0376579bbf1ca6093c1a0cf11c6c45.jpg)
-Async parallel slice scoll query
-![GitHub Logo](https://oscimg.oschina.net/oscnet/2ad63bcb0ad2de30a2cc13aa5f8a8ea86b4.jpg)
-Simple indice and indice type exist query
-![GitHub Logo](https://oscimg.oschina.net/oscnet/4c2e63e159786c28909ca2a003c8ee28432.jpg)
-dsl query
-![GitHub Logo](https://oscimg.oschina.net/oscnet/90fe224aee8b52c50b22fdfe0860658324d.jpg)
-
-
-How to use Elasticsearch BBoss.
-
-First add the maven dependency of BBoss to your pom.xml:
-
-```xml
-
- com.bbossgroups.plugins
- bboss-elasticsearch-rest-jdbc
- 5.6.9
-
-```
-
-If it's a spring boot project, you can replace the Maven coordinates above with the following Maven coordinates:
-
-```xml
-
- com.bbossgroups.plugins
- bboss-elasticsearch-spring-boot-starter
- 5.6.9
-
-```
-
-
-
-Next, add the Elasticsearch addresses to the application.properties file under the project resource directory, and create a new one if the file does not exist:
-
-```properties
-elasticsearch.rest.hostNames=10.21.20.168:9200
-
-#Cluster addresses are separated by commas
-
-#elasticsearch.rest.hostNames=10.180.211.27:9200,10.180.211.28:9200,10.180.211.29:9200
-```
-
-
-
-And last create a jsp file named testElasticsearch.jsp :
-
-```jsp
-<%@ page import="org.frameworkset.elasticsearch.ElasticSearchHelper" %>
-<%@ page import="org.frameworkset.elasticsearch.client.ClientInterface" %>
-<%@ page import="org.frameworkset.elasticsearch.entity.ESDatas" %>
-<%@ page import="org.frameworkset.elasticsearch.scroll.ScrollHandler" %>
-<%@ page import="java.util.List" %>
-<%@ page import="java.util.Map" %>
-<%@ page import="org.frameworkset.elasticsearch.scroll.HandlerInfo" %>
-<%@ page language="java" pageEncoding="UTF-8"%>
-
-<%
- ClientInterface clientUtil = ElasticSearchHelper.getRestClientUtil();
- //get elasticsearch cluster state
- String result = clientUtil.executeHttp("_cluster/state?pretty",ClientInterface.HTTP_GET);
-
- //check indice twitter and index type tweet exist or not.
- boolean exist1 = clientUtil.existIndiceType("twitter","tweet");
- out.println("twitter tweet type exist:"+exist1);
- //check indice twitter exist or not
- exist1 = clientUtil.existIndice("twitter");
- out.println("twitter exist:"+exist1);
- //count documents in indice twitter
- long count = clientUtil.countAll("demo");
- out.println(count);
-
- //Get All documents of indice twitter,DEFAULT_FETCHSIZE is 5000
- ESDatas