Does anyone have an example for how to use update? It\'s documented here, but the documentation is unclear and doesn\'t include a working example. I\'ve tried the followin
You're almost there, you just need to enclose your body inside a "doc" field. The correct way of doing a partial update with elasticsearch-py goes like this:
coll = Elasticsearch()
coll.update(index='stories-test',doc_type='news',id=hit.meta.id,
body={"doc": {"stanford": 1, "parsed_sents": parsed }})