Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- body = {"query": {"bool":
- {"must": [
- {"match": {
- "{}".format(key_columns[0]): {"query": elem["{}".format(key_columns[0])], "operator": "and"}}},
- {"match": {
- "{}".format(key_columns[1]): {"query": elem["{}".format(key_columns[1])], "operator": "and"}}},
- {"match": {
- "{}".format(key_columns[2]): {"query": elem["{}".format(key_columns[2])], "operator": "and"}}},
- {"match": {
- "{}".format(key_columns[3]): {"query": elem["{}".format(key_columns[3])], "operator": "and"}}}
- ]}}}
- print("INFO : search for element in elasticsearch index")
- res = self._es.search(index=index, body=body)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement