# DeleteByQuery ignores types with TransportClient

**URL:** <https://discuss.elastic.co/t/deletebyquery-ignores-types-with-transportclient/3713>\
**Category:** Elasticsearch\
**Created:** [December 30, 2010, 12:23pm UTC](https://discuss.elastic.co/t/deletebyquery-ignores-types-with-transportclient/3713 "2010-12-30T12:23:09Z")\
**Posts on this page:** 3\
**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:** [December 30, 2010, 12:23pm UTC](https://discuss.elastic.co/t/deletebyquery-ignores-types-with-transportclient/3713/1 "2010-12-30T12:23:09Z")

</div>

Hi,  
DeleteByQueryRequest does not serialize "types" in "writeTo" method, which  
causes to delete all the entries matching the given query in the specified  
index.

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

---

<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:** [December 30, 2010, 12:43pm UTC](https://discuss.elastic.co/t/deletebyquery-ignores-types-with-transportclient/3713/2 "2010-12-30T12:43:25Z")

</div>

Good catch!, opened an issue and pushed a fix for it:  
[Delete By Query: Types are not serialized over network, causing them to be ignored · Issue #580 · elastic/elasticsearch · GitHub](https://github.com/elasticsearch/elasticsearch/issues/issue/580).

2010/12/30 sezgin küçükkaraaslan [sezo104@gmail.com](mailto:sezo104@gmail.com)

> Hi,  
> DeleteByQueryRequest does not serialize "types" in "writeTo" method, which  
> causes to delete all the entries matching the given query in the specified  
> index.
> 
> 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:14am UTC](https://discuss.elastic.co/t/deletebyquery-ignores-types-with-transportclient/3713/3 "2017-07-06T04:14:39Z")

</div>

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


