Skip to content

Commit

Permalink
Updated Readme for Java client
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick Sergeev committed Jun 29, 2023
1 parent b54274b commit d6ea325
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

Expand All @@ -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);
Expand Down

0 comments on commit d6ea325

Please sign in to comment.