Created
May 26, 2020 11:38
-
-
Save zhnlk/a22fd61354ed4d55c5706cf6fc7b99af 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
POST index_article/_update_by_query | |
{ | |
"script": { | |
"source": "ctx._source.attribute = params.attribute", | |
"params": { | |
"attribute": { | |
"link": null, | |
"image": null, | |
"author": { | |
"account": null, | |
"name": "" | |
}, | |
"owner": null | |
} | |
}, | |
"lang": "painless" | |
}, | |
"query": { | |
"bool": { | |
"must_not": { | |
"exists": { | |
"field": "attribute.author.name" | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment