Created
December 2, 2019 16:49
-
-
Save ashokc/2b4a9a2462dcf85e7b5f6e554f1a30ae to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def removeEmptyNotes(): | |
body = { "bool": { "must_not": { "exists": { "field": "TOKENS" } } } } | |
update_by_query = { "script": { "source": "ctx._source.readmit=-1", "lang": "painless" }, "query": body} | |
client.update_by_query(index=index, body=update_by_query, timeout='2m') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment