Example #1
0
    def test_update_doc(self):
        c = BaseClient()
        h_cb = partial(
            self.handle_cb,
            **{'codes':[400, 404, 403,]}
        )
        body = """
        {
            "script" : "ctx._source.counter += count",
            "params" : {
                "count" : 4
            }
        }

        """
        c.update_doc('test', 'test', 'test123', body=body, callback=h_cb)
        self.wait()