File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
src/main/scala/algoliasearch/api Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -1220,11 +1220,15 @@ class IngestionClient(
1220
1220
* @param watch
1221
1221
* When provided, the push operation will be synchronous and the API will wait for the ingestion to be finished
1222
1222
* before responding.
1223
+ * @param referenceIndexName
1224
+ * This is required when targeting an index that does not have a push connector setup (e.g. a tmp index), but you
1225
+ * wish to attach another index's transformation to it (e.g. the source index name).
1223
1226
*/
1224
1227
def push (
1225
1228
indexName : String ,
1226
1229
pushTaskPayload : PushTaskPayload ,
1227
1230
watch : Option [Boolean ] = None ,
1231
+ referenceIndexName : Option [String ] = None ,
1228
1232
requestOptions : Option [RequestOptions ] = None
1229
1233
)(implicit ec : ExecutionContext ): Future [WatchResponse ] = Future {
1230
1234
requireNotNull(indexName, " Parameter `indexName` is required when calling `push`." )
@@ -1236,6 +1240,7 @@ class IngestionClient(
1236
1240
.withPath(s " /1/push/ ${escape(indexName)}" )
1237
1241
.withBody(pushTaskPayload)
1238
1242
.withQueryParameter(" watch" , watch)
1243
+ .withQueryParameter(" referenceIndexName" , referenceIndexName)
1239
1244
.build()
1240
1245
execute[WatchResponse ](
1241
1246
request,
You can’t perform that action at this time.
0 commit comments