Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- edit_author1 = {"name": "Sheldon Sid", "myid": 18}
- resp = es.index(index="radsearch", doc_type="default", id=18, body={"doc": edit_author1})
- {
- "_index": "radsearch",
- "_type": "default",
- "_id": "18",
- "_version": 1,
- "found": true,
- "_source": {
- "doc": {
- "name": "Sheldon Sid",
- "myid": 18
- }
- }
- }
- resp = es.update(index="radsearch", doc_type="default", id=18, body={'doc': edit_author1})
- {
- "_index": "radsearch",
- "_type": "default",
- "_id": "18",
- "_version": 2,
- "found": true,
- "_source": {
- "doc": {
- "name": "Sheldon Sid",
- "myid": 18
- },
- "myid": 18,
- "name": "Sheldon Sid"
- }
- }
- resp = es.update(index="radsearch", doc_type="default", id=18, body={edit_author1})
- TypeError: unhashable type: 'dict'
Add Comment
Please, Sign In to add comment