# Modifiable documents in ES

**URL:** <https://discuss.elastic.co/t/modifiable-documents-in-es/2815>\
**Category:** Elasticsearch\
**Created:** [February 16, 2010, 6:07pm UTC](https://discuss.elastic.co/t/modifiable-documents-in-es/2815 "2010-02-16T18:07:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rstml](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rstml/32/3366_2.png) [@rstml](https://discuss.elastic.co/u/rstml)\
**Post date:** [February 16, 2010, 6:07pm UTC](https://discuss.elastic.co/t/modifiable-documents-in-es/2815/1 "2010-02-16T18:07:33Z")

</div>

Hi,

I was wondering if there's plan to support modifiable documents? At  
the moment there's patch for Solr (SOLR-139) which enables update to  
the indexed documents.

Modifiable documents are really useful for people (like me:)) who  
wants to replace DB with searchable document store and at the same  
time have UPDATE functionality.

Also, I was wondering how reliable data in ES and how reliable write  
operation? For instance, Cassandra claims to be reliable through  
"eventually consistent" model ([http://www.allthingsdistributed.com/](http://www.allthingsdistributed.com/)  
2008/12/eventually\_consistent.html). What about ES?

Thanks,  
Rustam.

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [February 16, 2010, 8:13pm UTC](https://discuss.elastic.co/t/modifiable-documents-in-es/2815/2 "2010-02-16T20:13:45Z")

</div>

Hi,

Regarding the updates, since elasticsearch provides you with the full JSON  
document you want, you can always retrieve it, update what you need, and  
then index it back. Elasticsearch can do that for you, for example, send a  
JSON document which is an update doc, and Elasticsearch will read the one  
from the index, merge it for you, and update it back, but for now, you can  
easily do that yourself. Elasticsearch is different than Solr, since it  
provides you with the _actual_ JSON you indexed.

In terms of reliability, each Elasticsearch operation is atomic, durable,  
and isolated. An operation is hashed to a specific shard, performed on it,  
and then replicated to all its replicas. When the operation returns, it has  
already been replicated to all the replicas and it is "safely" there. Of  
course, you can configure the number of replicas (in Elasticsearch,  
reads/search requests work against the replicas as well, so you get  
read/search scaling with more replicas).

In terms of visibility, Elasticsearch provides near real time visibility,  
which by default is set to 1 second. This means that when you index  
something, it will appear in search results and get results at most 1 second  
after it has been indexed.

-shay.banon

On Tue, Feb 16, 2010 at 8:07 PM, rstml [rustem@gmail.com](mailto:rustem@gmail.com) wrote:

> Hi,
> 
> I was wondering if there's plan to support modifiable documents? At  
> the moment there's patch for Solr (SOLR-139) which enables update to  
> the indexed documents.
> 
> Modifiable documents are really useful for people (like me:)) who  
> wants to replace DB with searchable document store and at the same  
> time have UPDATE functionality.
> 
> Also, I was wondering how reliable data in ES and how reliable write  
> operation? For instance, Cassandra claims to be reliable through  
> "eventually consistent" model ([http://www.allthingsdistributed.com/](http://www.allthingsdistributed.com/)  
> 2008/12/eventually\_consistent.html[http://www.allthingsdistributed.com/2008/12/eventually\_consistent.html](http://www.allthingsdistributed.com/2008/12/eventually_consistent.html)).  
> What about ES?
> 
> Thanks,  
> Rustam.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 4:25am UTC](https://discuss.elastic.co/t/modifiable-documents-in-es/2815/3 "2017-07-06T04:25:43Z")

</div>

Closed on July 6, 2017, 4:25am UTC


