update document should update with hash from as_indexed_json.

update document should update with hash from as_indexed_json which could also contain derived attributes.
resolves #178