Skip to content

Commit af94766

Browse files
committed
python
1 parent 3797ee9 commit af94766

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

templates/python/search_helpers.mustache

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,7 @@
356356
index_name: str,
357357
objects: List[Dict[str, Any]],
358358
batch_size: int = 1000,
359+
scopes = ["settings", "rules", "synonyms"],
359360
request_options: Optional[Union[dict, RequestOptions]] = None,
360361
) -> ReplaceAllObjectsResponse:
361362
"""
@@ -372,11 +373,7 @@
372373
operation_index_params=OperationIndexParams(
373374
operation=OperationType.COPY,
374375
destination=tmp_index_name,
375-
scope=[
376-
ScopeType("settings"),
377-
ScopeType("rules"),
378-
ScopeType("synonyms"),
379-
],
376+
scope=scopes,
380377
),
381378
request_options=request_options,
382379
)

0 commit comments

Comments
 (0)