# Overwriting using Java bulk indexing

**URL:** <https://discuss.elastic.co/t/overwriting-using-java-bulk-indexing/13350>\
**Category:** Elasticsearch\
**Created:** [August 27, 2013, 3:58pm UTC](https://discuss.elastic.co/t/overwriting-using-java-bulk-indexing/13350 "2013-08-27T15:58:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yann\_Barraud](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yann_barraud/32/1108_2.png) [@Yann\_Barraud](https://discuss.elastic.co/u/Yann_Barraud)\
**Post date:** [August 27, 2013, 3:58pm UTC](https://discuss.elastic.co/t/overwriting-using-java-bulk-indexing/13350/1 "2013-08-27T15:58:02Z")

</div>

Hi,

I am facing a prodution issue I want to fix by reindexing data. My Java  
batch sets the \_id filed for indexed documents. But when launching the  
batch, no data is written, as if it was not performing overwrites.

Is there a specific setting to perfom this ?

Thanks.

Yann

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [September 12, 2013, 8:56am UTC](https://discuss.elastic.co/t/overwriting-using-java-bulk-indexing/13350/2 "2013-09-12T08:56:21Z")

</div>

Hey,

can you provide a stripped down sample, of what you are doing, so we can  
get a more concrete picture of this?

--Alex

On Tue, Aug 27, 2013 at 5:58 PM, Yann Barraud [yann.barraud@gmail.com](mailto:yann.barraud@gmail.com)wrote:

> Hi,
> 
> I am facing a prodution issue I want to fix by reindexing data. My Java  
> batch sets the \_id filed for indexed documents. But when launching the  
> batch, no data is written, as if it was not performing overwrites.
> 
> Is there a specific setting to perfom this ?
> 
> Thanks.
> 
> Yann
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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, 2:16am UTC](https://discuss.elastic.co/t/overwriting-using-java-bulk-indexing/13350/3 "2017-07-06T02:16:59Z")

</div>

Closed on July 6, 2017, 2:16am UTC


