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(
12201220 * @param watch
12211221 * When provided, the push operation will be synchronous and the API will wait for the ingestion to be finished
12221222 * 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).
12231226 */
12241227 def push (
12251228 indexName : String ,
12261229 pushTaskPayload : PushTaskPayload ,
12271230 watch : Option [Boolean ] = None ,
1231+ referenceIndexName : Option [String ] = None ,
12281232 requestOptions : Option [RequestOptions ] = None
12291233 )(implicit ec : ExecutionContext ): Future [WatchResponse ] = Future {
12301234 requireNotNull(indexName, " Parameter `indexName` is required when calling `push`." )
@@ -1236,6 +1240,7 @@ class IngestionClient(
12361240 .withPath(s " /1/push/ ${escape(indexName)}" )
12371241 .withBody(pushTaskPayload)
12381242 .withQueryParameter(" watch" , watch)
1243+ .withQueryParameter(" referenceIndexName" , referenceIndexName)
12391244 .build()
12401245 execute[WatchResponse ](
12411246 request,
You can’t perform that action at this time.
0 commit comments