Skip to content

Commit

Permalink
ml client has not method _bulk_body
Browse files Browse the repository at this point in the history
Need to access the _bulk_body method from the client object

closes: #959
  • Loading branch information
fxdgear committed May 22, 2019
1 parent 60d2548 commit 48a3bfb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions elasticsearch/client/xpack/ml.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ def find_file_structure(self, body, params=None):
"POST",
"/_ml/find_file_structure",
params=params,
body=self._bulk_body(body),
body=self.client._bulk_body(body),
)

@query_params("advance_time", "calc_interim", "end", "skip_time", "start")
Expand Down Expand Up @@ -634,7 +634,7 @@ def post_data(self, job_id, body, params=None):
"POST",
_make_path("_ml", "anomaly_detectors", job_id, "_data"),
params=params,
body=self._bulk_body(body),
body=self.client._bulk_body(body),
)

@query_params()
Expand Down

0 comments on commit 48a3bfb

Please sign in to comment.