# Nice bug with DeleteByQuery :)

**URL:** <https://discuss.elastic.co/t/nice-bug-with-deletebyquery/4081>\
**Category:** Elasticsearch\
**Created:** [March 11, 2011, 1:12pm UTC](https://discuss.elastic.co/t/nice-bug-with-deletebyquery/4081 "2011-03-11T13:12:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sezgin\_kucukkaraasla](https://avatars.discourse-cdn.com/v4/letter/s/9de0a6/32.png) [@sezgin\_kucukkaraasla](https://discuss.elastic.co/u/sezgin_kucukkaraasla)\
**Post date:** [March 11, 2011, 1:12pm UTC](https://discuss.elastic.co/t/nice-bug-with-deletebyquery/4081/1 "2011-03-11T13:12:25Z")

</div>

Hi,  
I have two indices let's say "index1" and "index2" and types "type1",  
"type2" accordingly. "index1" has alias "index1\_alias"

when I run deletebyquery on these indices like below I got the following  
results:

[http://host](http://host):port/_index1\_alias_/\_query?q=_:_ OK

[http://host](http://host):port/_index1\_alias_/_type1_/\_query?q=_:_ OK

[http://host](http://host):port/_index1\_alias,index2_/\_query?q=_:_ OK

[http://host](http://host):port/_index1\_alias,index2/type1,type2_/\_query?q=_:_  
Does not delete entries with type "type1"

Regards,  
Sezgin Kucukkaraaslan  
[www.ifountain.com](http://www.ifountain.com)

---

<div class="post-metadata">

**Author:** ![Clinton\_Gormley](https://avatars.discourse-cdn.com/v4/letter/c/50afbb/32.png) [@Clinton\_Gormley](https://discuss.elastic.co/u/Clinton_Gormley)\
**Post date:** [March 11, 2011, 1:39pm UTC](https://discuss.elastic.co/t/nice-bug-with-deletebyquery/4081/2 "2011-03-11T13:39:22Z")

</div>

Hi Sezgin

Please could you open an issue on  
[Issues · elastic/elasticsearch · GitHub](http://github.com/elasticsearch/elasticsearch/issues) and gist a complete  
recreation of this bug - it will make it easier to recreate (and thus to  
fix)

(see [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/help) for more on creating gists)

thank

clint

On Fri, 2011-03-11 at 15:12 +0200, sezgin kÃ¼Ã§Ã¼kkaraaslan wrote:

> Hi,  
> I have two indices let's say "index1" and "index2" and types "type1",  
> "type2" accordingly. "index1" has alias "index1\_alias"
> 
> when I run deletebyquery on these indices like below I got the  
> following results:
> 
> [http://host](http://host):port/index1\_alias/\_query?q=_:_ OK
> 
> [http://host](http://host):port/index1\_alias/type1/\_query?q=_:_ OK
> 
> [http://host](http://host):port/index1\_alias,index2/\_query?q=_:_ OK
> 
> [http://host](http://host):port/index1\_alias,index2/type1,type2/\_query?q=_:_  
> Does not delete entries with type "type1"
> 
> Regards,  
> Sezgin Kucukkaraaslan  
> [www.ifountain.com](http://www.ifountain.com)

---

<div class="post-metadata">

**Author:** ![sezgin\_kucukkaraasla](https://avatars.discourse-cdn.com/v4/letter/s/9de0a6/32.png) [@sezgin\_kucukkaraasla](https://discuss.elastic.co/u/sezgin_kucukkaraasla)\
**Post date:** [March 11, 2011, 2:28pm UTC](https://discuss.elastic.co/t/nice-bug-with-deletebyquery/4081/3 "2011-03-11T14:28:39Z")

</div>

Created [DeleteByQuery does not delete when multiple indices and types given · Issue #770 · elastic/elasticsearch · GitHub](https://github.com/elasticsearch/elasticsearch/issues/770)

On Fri, Mar 11, 2011 at 3:39 PM, Clinton Gormley [clinton@iannounce.co.uk](mailto:clinton@iannounce.co.uk)wrote:

> Hi Sezgin
> 
> Please could you open an issue on  
> [Issues · elastic/elasticsearch · GitHub](http://github.com/elasticsearch/elasticsearch/issues) and gist a complete  
> recreation of this bug - it will make it easier to recreate (and thus to  
> fix)
> 
> (see [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/help) for more on creating gists)
> 
> thank
> 
> clint
> 
> On Fri, 2011-03-11 at 15:12 +0200, sezgin küçükkaraaslan wrote:
> 
> > Hi,  
> > I have two indices let's say "index1" and "index2" and types "type1",  
> > "type2" accordingly. "index1" has alias "index1\_alias"
> > 
> > when I run deletebyquery on these indices like below I got the  
> > following results:
> > 
> > [http://host](http://host):port/index1\_alias/\_query?q=_:_ OK
> > 
> > [http://host](http://host):port/index1\_alias/type1/\_query?q=_:_ OK
> > 
> > [http://host](http://host):port/index1\_alias,index2/\_query?q=_:_ OK
> > 
> > [http://host](http://host):port/index1\_alias,index2/type1,type2/\_query?q=_:_  
> > Does not delete entries with type "type1"
> > 
> > Regards,  
> > Sezgin Kucukkaraaslan  
> > [www.ifountain.com](http://www.ifountain.com)

---

<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:10am UTC](https://discuss.elastic.co/t/nice-bug-with-deletebyquery/4081/4 "2017-07-06T04:10:16Z")

</div>


