Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions specs/ingestion/paths/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ post:
parameters:
- $ref: '../../common/parameters.yml#/IndexName'
- $ref: '../common/parameters.yml#/watch'
- name: referenceIndexName
in: query
description: This is required when targeting an index that does not have a push connector setup (e.g. a tmp index), but you wish to attach another index's transformation to it (e.g. the source index name).
required: false
schema:
type: string
requestBody:
content:
application/json:
Expand Down
2 changes: 2 additions & 0 deletions templates/java/api_helpers.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -738,6 +738,7 @@ public <T> WatchResponse saveObjectsWithTransformation(
indexName,
new PushTaskPayload().setAction(com.algolia.model.ingestion.Action.ADD_OBJECT).setRecords(this.objectsToPushTaskRecords(objects)),
waitForTasks,
null,
requestOptions
);
}
Expand Down Expand Up @@ -983,6 +984,7 @@ public <T> WatchResponse partialUpdateObjectsWithTransformation(
)
.setRecords(this.objectsToPushTaskRecords(objects)),
waitForTasks,
null,
requestOptions
);
}
Expand Down
6 changes: 4 additions & 2 deletions tests/CTS/requests/ingestion/push.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,15 @@
}
]
},
"watch": true
"watch": true,
"referenceIndexName": "foo"
},
"request": {
"path": "/1/push/bar",
"method": "POST",
"queryParameters": {
"watch": "true"
"watch": "true",
"referenceIndexName": "foo"
},
"body": {
"action": "addObject",
Expand Down