From d6ea325c2c8fe76a10d534f047175bbc1c6869e5 Mon Sep 17 00:00:00 2001 From: Nick Sergeev Date: Thu, 29 Jun 2023 19:03:40 +0700 Subject: [PATCH] Updated Readme for Java client --- README.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 0f0f749..af7ba69 100755 --- a/README.md +++ b/README.md @@ -109,8 +109,7 @@ Please follow the [installation](#installation) instruction and execute the foll import com.manticoresearch.client.*; import com.manticoresearch.client.auth.*; import com.manticoresearch.client.model.*; -import com.manticoresearch.client.api.IndexApi; -import com.manticoresearch.client.api.; +import com.manticoresearch.client.api.*; public class ApiExample { @@ -119,7 +118,7 @@ public class ApiExample { defaultClient.setBasePath("http://127.0.0.1:9308"); IndexApi apiInstance = new IndexApi(defaultClient); - String body = ["'{\"insert\": {\"index\": \"test\", \"id\": 1, \"doc\": {\"title\": \"Title 1\"}}},\\n{\"insert\": {\"index\": \"test\", \"id\": 2, \"doc\": {\"title\": \"Title 2\"}}}'"]; // String | + String body = "'{\"insert\": {\"index\": \"test\", \"id\": 1, \"doc\": {\"title\": \"Title 1\"}}},\\n{\"insert\": {\"index\": \"test\", \"id\": 2, \"doc\": {\"title\": \"Title 2\"}}}'"; // String try { BulkResponse result = apiInstance.bulk(body); System.out.println(result);