版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/jacke121/article/details/85000610
ActionRequestValidationException[Validation Failed: 1: script or doc is missing
解决方法:body中加'doc'节点,把其他包裹起来。
coll = Elasticsearch()
coll.update(index='stories-test',doc_type='news',id=hit.meta.id,
body={"doc": {"stanford": 1, "parsed_sents": parsed }})