Skip to content

Commit 716b556

Browse files
committed
to fix unrelated code to java client api
1 parent fcfce6a commit 716b556

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

es9/java/src/main/scala/app/softnetwork/elastic/client/java/JavaClientApi.scala

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ import co.elastic.clients.elasticsearch.core.reindex.{Destination, Source => ESS
4848
import co.elastic.clients.elasticsearch.core.search.{PointInTimeReference, SearchRequestBody}
4949
import co.elastic.clients.elasticsearch.indices.update_aliases.{Action, AddAction, RemoveAction}
5050
import co.elastic.clients.elasticsearch.indices.{ExistsRequest => IndexExistsRequest, _}
51-
import co.elastic.clients.elasticsearch.sql.QueryRequest
5251
import com.google.gson.JsonParser
5352

5453
import _root_.java.io.{IOException, StringReader}
@@ -751,11 +750,6 @@ trait JavaClientGetApi extends GetApi with JavaClientHelpers {
751750
trait JavaClientSearchApi extends SearchApi with JavaClientHelpers {
752751
_: JavaClientCompanion with SerializationApi =>
753752

754-
val response = apply().sql().query(new QueryRequest.Builder().query("SELECT 1").build())
755-
val row = response.rows().get(0)
756-
val data = row.get(0)
757-
data.toJson
758-
759753
override implicit def sqlSearchRequestToJsonQuery(sqlSearch: SQLSearchRequest): String =
760754
implicitly[ElasticSearchRequest](sqlSearch).query
761755

0 commit comments

Comments
 (0)