Skip to content

Commit 48a3bfb

Browse files
committed
ml client has not method _bulk_body
Need to access the _bulk_body method from the client object closes: #959
1 parent 60d2548 commit 48a3bfb

File tree

1 file changed

+2
-2
lines changed
  • elasticsearch/client/xpack

1 file changed

+2
-2
lines changed

elasticsearch/client/xpack/ml.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ def find_file_structure(self, body, params=None):
224224
"POST",
225225
"/_ml/find_file_structure",
226226
params=params,
227-
body=self._bulk_body(body),
227+
body=self.client._bulk_body(body),
228228
)
229229

230230
@query_params("advance_time", "calc_interim", "end", "skip_time", "start")
@@ -634,7 +634,7 @@ def post_data(self, job_id, body, params=None):
634634
"POST",
635635
_make_path("_ml", "anomaly_detectors", job_id, "_data"),
636636
params=params,
637-
body=self._bulk_body(body),
637+
body=self.client._bulk_body(body),
638638
)
639639

640640
@query_params()

0 commit comments

Comments
 (0)