# Update and delete enquiry

**URL:** <https://discuss.elastic.co/t/update-and-delete-enquiry/5074>\
**Category:** Elasticsearch\
**Created:** [August 7, 2011, 12:05am UTC](https://discuss.elastic.co/t/update-and-delete-enquiry/5074 "2011-08-07T00:05:02Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![CHI\_WAI\_HO](https://avatars.discourse-cdn.com/v4/letter/c/e68b1a/32.png) [@CHI\_WAI\_HO](https://discuss.elastic.co/u/CHI_WAI_HO)\
**Post date:** [August 7, 2011, 12:05am UTC](https://discuss.elastic.co/t/update-and-delete-enquiry/5074/1 "2011-08-07T00:05:02Z")

</div>

Dear All,

I am learning and evaluating the EC; and I have 2 questions about  
document update and delete in EC.

First of all, if I want to update a document, do I just submit a new  
post with the same ID to the EC? I have tried the steps and after  
submitting in that way, The document no longer returns. In fact, I  
cannot find any example on how to update doc on EC website.

Next, does the space of all deleted docs release NRT? If not, how can  
I get back the space?

Thanks a lot.

---

<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:** [August 8, 2011, 7:57am UTC](https://discuss.elastic.co/t/update-and-delete-enquiry/5074/2 "2011-08-08T07:57:10Z")

</div>

Not sure I understand the questions. You update a document by indexing the  
full document with the new data. Did not understand the second question on  
deleted docs and release NRT?

On Sun, Aug 7, 2011 at 3:05 AM, CHI WAI HO [zeroho@gmail.com](mailto:zeroho@gmail.com) wrote:

> Dear All,
> 
> I am learning and evaluating the EC; and I have 2 questions about  
> document update and delete in EC.
> 
> First of all, if I want to update a document, do I just submit a new  
> post with the same ID to the EC? I have tried the steps and after  
> submitting in that way, The document no longer returns. In fact, I  
> cannot find any example on how to update doc on EC website.
> 
> Next, does the space of all deleted docs release NRT? If not, how can  
> I get back the space?
> 
> Thanks a lot.

---

<div class="post-metadata">

**Author:** ![Curtis\_Caravone](https://avatars.discourse-cdn.com/v4/letter/c/e47c2d/32.png) [@Curtis\_Caravone](https://discuss.elastic.co/u/Curtis_Caravone)\
**Post date:** [August 8, 2011, 2:22pm UTC](https://discuss.elastic.co/t/update-and-delete-enquiry/5074/3 "2011-08-08T14:22:02Z")

</div>

The deleted docs stay in the underlying Lucene index until the next merge of  
that index segment.

> **[Elasticsearch Platform — Find real-time answers at scale](https://www.elastic.co)**
>
> Power insights and outcomes with the Elasticsearch Platform and AI. See into your data and find answers that matter with enterprise solutions designed to help you build, observe, and protect. Try Elasticsearch free today.

Curtis

On Sat, Aug 6, 2011 at 5:05 PM, CHI WAI HO [zeroho@gmail.com](mailto:zeroho@gmail.com) wrote:

> Dear All,
> 
> I am learning and evaluating the EC; and I have 2 questions about  
> document update and delete in EC.
> 
> First of all, if I want to update a document, do I just submit a new  
> post with the same ID to the EC? I have tried the steps and after  
> submitting in that way, The document no longer returns. In fact, I  
> cannot find any example on how to update doc on EC website.
> 
> Next, does the space of all deleted docs release NRT? If not, how can  
> I get back the space?
> 
> Thanks a lot.

---

<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:** [August 8, 2011, 5:08pm UTC](https://discuss.elastic.co/t/update-and-delete-enquiry/5074/4 "2011-08-08T17:08:06Z")

</div>

Yes, they are, though just to complete the picture, they are "invisible"  
when searching (on the next refresh).

On Mon, Aug 8, 2011 at 5:22 PM, Curtis Caravone [caravone@gmail.com](mailto:caravone@gmail.com) wrote:

> The deleted docs stay in the underlying Lucene index until the next merge  
> of that index segment.
> 
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/index-modules/merge.html)
> 
> Curtis
> 
> On Sat, Aug 6, 2011 at 5:05 PM, CHI WAI HO [zeroho@gmail.com](mailto:zeroho@gmail.com) wrote:
> 
> > Dear All,
> > 
> > I am learning and evaluating the EC; and I have 2 questions about  
> > document update and delete in EC.
> > 
> > First of all, if I want to update a document, do I just submit a new  
> > post with the same ID to the EC? I have tried the steps and after  
> > submitting in that way, The document no longer returns. In fact, I  
> > cannot find any example on how to update doc on EC website.
> > 
> > Next, does the space of all deleted docs release NRT? If not, how can  
> > I get back the space?
> > 
> > Thanks a lot.

---

<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, 3:57am UTC](https://discuss.elastic.co/t/update-and-delete-enquiry/5074/5 "2017-07-06T03:57:55Z")

</div>


