don't run for docs that already have peer_id
Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
e0e06ea36d
commit
5f7c448c18
|
@ -71,6 +71,9 @@ def main():
|
|||
if len(queries) > 0:
|
||||
body = {'query': {'bool': {'must': queries}}}
|
||||
|
||||
# don't match docs that already have peer_id field
|
||||
body['query']['bool']['must_not'] = { 'exists': { 'field': 'peer_id' } }
|
||||
|
||||
for index in indices:
|
||||
resp = es.count(index=index, body=body)
|
||||
count = resp.get('count')
|
||||
|
|
Loading…
Reference in New Issue