def es_index(self, id, values):
        content = json.dumps(values)

        conn = httplib.HTTPConnection(self.host, self.port)
        conn.request("PUT", (self.node, self.index, id) % "/%s/%s/%s", content)
        resp = conn.getresponse()
        if not 200 == resp.status:
            return

        raw = resp.read()
        data = json.loads(raw)

        return data
dataset/ETHPy150Open Mikulas/pg-es-fdw/dite/__init__.py/ElasticsearchFDW.es_index/swapped operands of `%`