|
1362 | 1362 | "call partialUpdateObjects with createIfNotExists=false": "response, err := client.PartialUpdateObjects(\n \"<YOUR_INDEX_NAME>\",\n []map[string]any{map[string]any{\"objectID\": \"3\", \"name\": \"Cyril\"}, map[string]any{\"objectID\": \"4\", \"name\": \"David\"}}, search.WithCreateIfNotExists(false))\nif err != nil {\n // handle the eventual error\n panic(err)\n}"
|
1363 | 1363 | },
|
1364 | 1364 | "partialUpdateObjectsWithTransformation": {
|
1365 |
| - "default": "response, err := client.PartialUpdateObjectsWithTransformation(\n \"<YOUR_INDEX_NAME>\",\n []map[string]any{map[string]any{\"objectID\": \"1\", \"name\": \"Adam\"}, map[string]any{\"objectID\": \"2\", \"name\": \"Benoit\"}}, search.WithCreateIfNotExists(true))\nif err != nil {\n // handle the eventual error\n panic(err)\n}" |
| 1365 | + "default": "response, err := client.PartialUpdateObjectsWithTransformation(\n \"<YOUR_INDEX_NAME>\",\n []map[string]any{map[string]any{\"objectID\": \"1\", \"name\": \"Adam\"}, map[string]any{\"objectID\": \"2\", \"name\": \"Benoit\"}}, search.WithCreateIfNotExists(true), search.WithWaitForTasks(true))\nif err != nil {\n // handle the eventual error\n panic(err)\n}" |
1366 | 1366 | },
|
1367 | 1367 | "removeUserId": {
|
1368 | 1368 | "default": "response, err := client.RemoveUserId(client.NewApiRemoveUserIdRequest(\n \"uniqueID\"))\nif err != nil {\n // handle the eventual error\n panic(err)\n}"
|
|
1391 | 1391 | "saveObjectsPublicUser": "response, err := client.SaveObjects(\n \"<YOUR_INDEX_NAME>\",\n []map[string]any{map[string]any{\"objectID\": \"1\", \"visibility\": \"public\", \"name\": \"Hot 100 Billboard Charts\", \"playlistId\": \"d3e8e8f3-0a4f-4b7d-9b6b-7e8f4e8e3a0f\", \"createdAt\": \"1500240452\"}}, search.WithWaitForTasks(false), search.WithBatchSize(1000), search.WithHeaderParam(\"X-Algolia-User-ID\", \"*\"))\nif err != nil {\n // handle the eventual error\n panic(err)\n}"
|
1392 | 1392 | },
|
1393 | 1393 | "saveObjectsWithTransformation": {
|
1394 |
| - "default": "response, err := client.SaveObjectsWithTransformation(\n \"<YOUR_INDEX_NAME>\",\n []map[string]any{map[string]any{\"objectID\": \"1\", \"name\": \"Adam\"}, map[string]any{\"objectID\": \"2\", \"name\": \"Benoit\"}})\nif err != nil {\n // handle the eventual error\n panic(err)\n}" |
| 1394 | + "default": "response, err := client.SaveObjectsWithTransformation(\n \"<YOUR_INDEX_NAME>\",\n []map[string]any{map[string]any{\"objectID\": \"1\", \"name\": \"Adam\"}, map[string]any{\"objectID\": \"2\", \"name\": \"Benoit\"}}, search.WithWaitForTasks(true))\nif err != nil {\n // handle the eventual error\n panic(err)\n}" |
1395 | 1395 | },
|
1396 | 1396 | "saveRule": {
|
1397 | 1397 | "saveRule with minimal parameters": "response, err := client.SaveRule(client.NewApiSaveRuleRequest(\n \"<YOUR_INDEX_NAME>\", \"id1\",\n search.NewEmptyRule().SetObjectID(\"id1\").SetConditions(\n []search.Condition{*search.NewEmptyCondition().SetPattern(\"apple\").SetAnchoring(search.Anchoring(\"contains\"))}).SetConsequence(\n search.NewEmptyConsequence().SetParams(\n search.NewEmptyConsequenceParams().SetFilters(\"brand:xiaomi\")))))\nif err != nil {\n // handle the eventual error\n panic(err)\n}",
|
|
1952 | 1952 | "call partialUpdateObjects with createIfNotExists=false": "client.partialUpdateObjects(\n \"<YOUR_INDEX_NAME>\",\n Arrays.asList(\n new HashMap() {\n {\n put(\"objectID\", \"3\");\n put(\"name\", \"Cyril\");\n }\n },\n new HashMap() {\n {\n put(\"objectID\", \"4\");\n put(\"name\", \"David\");\n }\n }\n ),\n false\n);"
|
1953 | 1953 | },
|
1954 | 1954 | "partialUpdateObjectsWithTransformation": {
|
1955 |
| - "default": "client.partialUpdateObjectsWithTransformation(\n \"<YOUR_INDEX_NAME>\",\n Arrays.asList(\n new HashMap() {\n {\n put(\"objectID\", \"1\");\n put(\"name\", \"Adam\");\n }\n },\n new HashMap() {\n {\n put(\"objectID\", \"2\");\n put(\"name\", \"Benoit\");\n }\n }\n ),\n true\n);" |
| 1955 | + "default": "client.partialUpdateObjectsWithTransformation(\n \"<YOUR_INDEX_NAME>\",\n Arrays.asList(\n new HashMap() {\n {\n put(\"objectID\", \"1\");\n put(\"name\", \"Adam\");\n }\n },\n new HashMap() {\n {\n put(\"objectID\", \"2\");\n put(\"name\", \"Benoit\");\n }\n }\n ),\n true,\n true\n);" |
1956 | 1956 | },
|
1957 | 1957 | "removeUserId": {
|
1958 | 1958 | "default": "client.removeUserId(\"uniqueID\");"
|
|
1981 | 1981 | "saveObjectsPublicUser": "client.saveObjects(\n \"<YOUR_INDEX_NAME>\",\n Arrays.asList(\n new HashMap() {\n {\n put(\"objectID\", \"1\");\n put(\"visibility\", \"public\");\n put(\"name\", \"Hot 100 Billboard Charts\");\n put(\"playlistId\", \"d3e8e8f3-0a4f-4b7d-9b6b-7e8f4e8e3a0f\");\n put(\"createdAt\", \"1500240452\");\n }\n }\n ),\n false,\n 1000,\n new RequestOptions().addExtraHeader(\"X-Algolia-User-ID\", \"*\")\n);"
|
1982 | 1982 | },
|
1983 | 1983 | "saveObjectsWithTransformation": {
|
1984 |
| - "default": "client.saveObjectsWithTransformation(\n \"<YOUR_INDEX_NAME>\",\n Arrays.asList(\n new HashMap() {\n {\n put(\"objectID\", \"1\");\n put(\"name\", \"Adam\");\n }\n },\n new HashMap() {\n {\n put(\"objectID\", \"2\");\n put(\"name\", \"Benoit\");\n }\n }\n )\n);" |
| 1984 | + "default": "client.saveObjectsWithTransformation(\n \"<YOUR_INDEX_NAME>\",\n Arrays.asList(\n new HashMap() {\n {\n put(\"objectID\", \"1\");\n put(\"name\", \"Adam\");\n }\n },\n new HashMap() {\n {\n put(\"objectID\", \"2\");\n put(\"name\", \"Benoit\");\n }\n }\n ),\n true\n);" |
1985 | 1985 | },
|
1986 | 1986 | "saveRule": {
|
1987 | 1987 | "saveRule with minimal parameters": "client.saveRule(\n \"<YOUR_INDEX_NAME>\",\n \"id1\",\n new Rule()\n .setObjectID(\"id1\")\n .setConditions(Arrays.asList(new Condition().setPattern(\"apple\").setAnchoring(Anchoring.CONTAINS)))\n .setConsequence(new Consequence().setParams(new ConsequenceParams().setFilters(\"brand:xiaomi\")))\n);",
|
|
2545 | 2545 | "call partialUpdateObjects with createIfNotExists=false": "const response = await client.partialUpdateObjects({\n indexName: 'cts_e2e_partialUpdateObjects_javascript',\n objects: [\n { objectID: '3', name: 'Cyril' },\n { objectID: '4', name: 'David' },\n ],\n createIfNotExists: false,\n});"
|
2546 | 2546 | },
|
2547 | 2547 | "partialUpdateObjectsWithTransformation": {
|
2548 |
| - "default": "const response = await client.partialUpdateObjectsWithTransformation({\n indexName: 'cts_e2e_partialUpdateObjectsWithTransformation_javascript',\n objects: [\n { objectID: '1', name: 'Adam' },\n { objectID: '2', name: 'Benoit' },\n ],\n createIfNotExists: true,\n});" |
| 2548 | + "default": "const response = await client.partialUpdateObjectsWithTransformation({\n indexName: 'cts_e2e_partialUpdateObjectsWithTransformation_javascript',\n objects: [\n { objectID: '1', name: 'Adam' },\n { objectID: '2', name: 'Benoit' },\n ],\n createIfNotExists: true,\n waitForTasks: true,\n});" |
2549 | 2549 | },
|
2550 | 2550 | "removeUserId": {
|
2551 | 2551 | "default": "const response = await client.removeUserId({ userID: 'uniqueID' });"
|
|
2574 | 2574 | "saveObjectsPublicUser": "const response = await client.saveObjects(\n {\n indexName: 'playlists',\n objects: [\n {\n objectID: '1',\n visibility: 'public',\n name: 'Hot 100 Billboard Charts',\n playlistId: 'd3e8e8f3-0a4f-4b7d-9b6b-7e8f4e8e3a0f',\n createdAt: '1500240452',\n },\n ],\n waitForTasks: false,\n batchSize: 1000,\n },\n {\n headers: { 'X-Algolia-User-ID': '*' },\n },\n);"
|
2575 | 2575 | },
|
2576 | 2576 | "saveObjectsWithTransformation": {
|
2577 |
| - "default": "const response = await client.saveObjectsWithTransformation({\n indexName: 'cts_e2e_saveObjectsWithTransformation_javascript',\n objects: [\n { objectID: '1', name: 'Adam' },\n { objectID: '2', name: 'Benoit' },\n ],\n});" |
| 2577 | + "default": "const response = await client.saveObjectsWithTransformation({\n indexName: 'cts_e2e_saveObjectsWithTransformation_javascript',\n objects: [\n { objectID: '1', name: 'Adam' },\n { objectID: '2', name: 'Benoit' },\n ],\n waitForTasks: true,\n});" |
2578 | 2578 | },
|
2579 | 2579 | "saveRule": {
|
2580 | 2580 | "saveRule with minimal parameters": "const response = await client.saveRule({\n indexName: 'indexName',\n objectID: 'id1',\n rule: {\n objectID: 'id1',\n conditions: [{ pattern: 'apple', anchoring: 'contains' }],\n consequence: { params: { filters: 'brand:xiaomi' } },\n },\n});",
|
|
3716 | 3716 | "call partialUpdateObjects with createIfNotExists=false": "$response = $client->partialUpdateObjects(\n '<YOUR_INDEX_NAME>',\n [\n ['objectID' => '3',\n 'name' => 'Cyril',\n ],\n\n ['objectID' => '4',\n 'name' => 'David',\n ],\n ],\n false,\n);"
|
3717 | 3717 | },
|
3718 | 3718 | "partialUpdateObjectsWithTransformation": {
|
3719 |
| - "default": "$response = $client->partialUpdateObjectsWithTransformation(\n '<YOUR_INDEX_NAME>',\n [\n ['objectID' => '1',\n 'name' => 'Adam',\n ],\n\n ['objectID' => '2',\n 'name' => 'Benoit',\n ],\n ],\n true,\n);" |
| 3719 | + "default": "$response = $client->partialUpdateObjectsWithTransformation(\n '<YOUR_INDEX_NAME>',\n [\n ['objectID' => '1',\n 'name' => 'Adam',\n ],\n\n ['objectID' => '2',\n 'name' => 'Benoit',\n ],\n ],\n true,\n true,\n);" |
3720 | 3720 | },
|
3721 | 3721 | "removeUserId": {
|
3722 | 3722 | "default": "$response = $client->removeUserId(\n 'uniqueID',\n);"
|
|
3745 | 3745 | "saveObjectsPublicUser": "$response = $client->saveObjects(\n '<YOUR_INDEX_NAME>',\n [\n ['objectID' => '1',\n 'visibility' => 'public',\n 'name' => 'Hot 100 Billboard Charts',\n 'playlistId' => 'd3e8e8f3-0a4f-4b7d-9b6b-7e8f4e8e3a0f',\n 'createdAt' => '1500240452',\n ],\n ],\n false,\n 1000,\n [\n 'headers' => [\n 'X-Algolia-User-ID' => '*',\n ],\n ]\n);"
|
3746 | 3746 | },
|
3747 | 3747 | "saveObjectsWithTransformation": {
|
3748 |
| - "default": "$response = $client->saveObjectsWithTransformation(\n '<YOUR_INDEX_NAME>',\n [\n ['objectID' => '1',\n 'name' => 'Adam',\n ],\n\n ['objectID' => '2',\n 'name' => 'Benoit',\n ],\n ],\n);" |
| 3748 | + "default": "$response = $client->saveObjectsWithTransformation(\n '<YOUR_INDEX_NAME>',\n [\n ['objectID' => '1',\n 'name' => 'Adam',\n ],\n\n ['objectID' => '2',\n 'name' => 'Benoit',\n ],\n ],\n true,\n);" |
3749 | 3749 | },
|
3750 | 3750 | "saveRule": {
|
3751 | 3751 | "saveRule with minimal parameters": "$response = $client->saveRule(\n '<YOUR_INDEX_NAME>',\n 'id1',\n ['objectID' => 'id1',\n 'conditions' => [\n ['pattern' => 'apple',\n 'anchoring' => 'contains',\n ],\n ],\n 'consequence' => ['params' => ['filters' => 'brand:xiaomi',\n ],\n ],\n ],\n);",
|
|
4306 | 4306 | "call partialUpdateObjects with createIfNotExists=false": "response = client.partial_update_objects(\n index_name=\"<YOUR_INDEX_NAME>\",\n objects=[\n {\n \"objectID\": \"3\",\n \"name\": \"Cyril\",\n },\n {\n \"objectID\": \"4\",\n \"name\": \"David\",\n },\n ],\n create_if_not_exists=False,\n)"
|
4307 | 4307 | },
|
4308 | 4308 | "partialUpdateObjectsWithTransformation": {
|
4309 |
| - "default": "response = client.partial_update_objects_with_transformation(\n index_name=\"<YOUR_INDEX_NAME>\",\n objects=[\n {\n \"objectID\": \"1\",\n \"name\": \"Adam\",\n },\n {\n \"objectID\": \"2\",\n \"name\": \"Benoit\",\n },\n ],\n create_if_not_exists=True,\n)" |
| 4309 | + "default": "response = client.partial_update_objects_with_transformation(\n index_name=\"<YOUR_INDEX_NAME>\",\n objects=[\n {\n \"objectID\": \"1\",\n \"name\": \"Adam\",\n },\n {\n \"objectID\": \"2\",\n \"name\": \"Benoit\",\n },\n ],\n create_if_not_exists=True,\n wait_for_tasks=True,\n)" |
4310 | 4310 | },
|
4311 | 4311 | "removeUserId": {
|
4312 | 4312 | "default": "response = client.remove_user_id(\n user_id=\"uniqueID\",\n)"
|
|
4335 | 4335 | "saveObjectsPublicUser": "response = client.save_objects(\n index_name=\"<YOUR_INDEX_NAME>\",\n objects=[\n {\n \"objectID\": \"1\",\n \"visibility\": \"public\",\n \"name\": \"Hot 100 Billboard Charts\",\n \"playlistId\": \"d3e8e8f3-0a4f-4b7d-9b6b-7e8f4e8e3a0f\",\n \"createdAt\": \"1500240452\",\n },\n ],\n wait_for_tasks=False,\n batch_size=1000,\n request_options={\n \"headers\": loads(\"\"\"{\"X-Algolia-User-ID\":\"*\"}\"\"\"),\n },\n)"
|
4336 | 4336 | },
|
4337 | 4337 | "saveObjectsWithTransformation": {
|
4338 |
| - "default": "response = client.save_objects_with_transformation(\n index_name=\"<YOUR_INDEX_NAME>\",\n objects=[\n {\n \"objectID\": \"1\",\n \"name\": \"Adam\",\n },\n {\n \"objectID\": \"2\",\n \"name\": \"Benoit\",\n },\n ],\n)" |
| 4338 | + "default": "response = client.save_objects_with_transformation(\n index_name=\"<YOUR_INDEX_NAME>\",\n objects=[\n {\n \"objectID\": \"1\",\n \"name\": \"Adam\",\n },\n {\n \"objectID\": \"2\",\n \"name\": \"Benoit\",\n },\n ],\n wait_for_tasks=True,\n)" |
4339 | 4339 | },
|
4340 | 4340 | "saveRule": {
|
4341 | 4341 | "saveRule with minimal parameters": "response = client.save_rule(\n index_name=\"<YOUR_INDEX_NAME>\",\n object_id=\"id1\",\n rule={\n \"objectID\": \"id1\",\n \"conditions\": [\n {\n \"pattern\": \"apple\",\n \"anchoring\": \"contains\",\n },\n ],\n \"consequence\": {\n \"params\": {\n \"filters\": \"brand:xiaomi\",\n },\n },\n },\n)",
|
|
0 commit comments