We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c644f1b commit 84ebc34Copy full SHA for 84ebc34
README.md
@@ -56,7 +56,7 @@ import com.algolia.model.search.*;
56
SearchClient client = new SearchClient("YOUR_APP_ID", "YOUR_API_KEY");
57
58
// Add a new record to your Algolia index
59
-client.saveObject("<YOUR_INDEX_NAME>", Map.of("objectID", "id", "test", "val"));
+var response = client.saveObject("<YOUR_INDEX_NAME>", Map.of("objectID", "id", "test", "val"));
60
61
// Poll the task status to know when it has been indexed
62
client.waitForTask("<YOUR_INDEX_NAME>", response.getTaskID());
0 commit comments