# Search exceptions, is value really an INT (field names/type)

**URL:** <https://discuss.elastic.co/t/search-exceptions-is-value-really-an-int-field-names-type/27777>\
**Category:** Elasticsearch\
**Created:** [August 20, 2015, 5:10pm UTC](https://discuss.elastic.co/t/search-exceptions-is-value-really-an-int-field-names-type/27777 "2015-08-20T17:10:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![inlikefletch](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/inlikefletch/32/4834_2.png) [@inlikefletch](https://discuss.elastic.co/u/inlikefletch)\
**Post date:** [August 20, 2015, 5:10pm UTC](https://discuss.elastic.co/t/search-exceptions-is-value-really-an-int-field-names-type/27777/1 "2015-08-20T17:10:18Z")

</div>

I am getting the following errors. I suspect it to be because I have some documents that have fields of the same name and a different type. I am struggling through the reference guide to get curl statement to get/delete documents with this specific field name.

Error: Request to Elasticsearch failed: {"error":"SearchPhaseExecutionException[Failed to execute phase [query], all shards failed; shardFailures {[uHsaFjj\_RvmpYMnAZWVLKw][m1aps][0]: ElasticsearchException[java.lang.NumberFormatException: Invalid shift value in prefixCoded bytes (is encoded value really an INT?)]; nested: UncheckedExecutionException[java.lang.NumberFormatException: Invalid shift value in prefixCoded bytes (is encoded value really an INT?)]; nested: NumberFormatException[Invalid shift value in prefixCoded bytes (is encoded value really an INT?)]; }{[uHsaFjj\_RvmpYMnAZWVLKw][m1aps][1]: ElasticsearchException[java.lang.NumberFormatException: Invalid shift value in prefixCoded bytes (is encoded value really an INT?)]; nested: UncheckedExecutionException[java.lang.NumberFormatException: Invalid shift value in prefixCoded bytes (is encoded value really an INT?)]; nested: NumberFormatException[Invalid shift value in prefixCoded bytes (is encoded value really an INT?)]; }{[uHsaFjj\_RvmpYMnAZWVLKw][m1aps][2]: ElasticsearchException[java.lang.NumberFormatException: Invalid shift value in prefixCoded bytes (is encoded value really an INT?)]; nested: UncheckedExecutionException[java.lang.NumberFormatException: Invalid shift value in prefixCoded bytes (is encoded value really an INT?)]; nested: NumberFormatException[Invalid shift value in prefixCoded bytes (is encoded value really an INT?)]; }{[uHsaFjj\_RvmpYMnAZWVLKw][m1aps][3]: ElasticsearchException[java.lang.NumberFormatException: Invalid shift value in prefixCoded bytes (is encoded value really an INT?)]; nested: UncheckedExecutionException[java.lang.NumberFormatException: Invalid shift value in prefixCoded bytes (is encoded value really an INT?)]; nested: NumberFormatException[Invalid shift value in prefixCoded bytes (is encoded value really an INT?)]; }{[uHsaFjj\_RvmpYMnAZWVLKw][m1aps][4]: ElasticsearchException[java.lang.NumberFormatException: Invalid shift value in prefixCoded bytes (is encoded value really an INT?)]; nested: UncheckedExecutionException[java.lang.NumberFormatException: Invalid shift value in prefixCoded bytes (is encoded value really an INT?)]; nested: NumberFormatException[Invalid shift value in prefixCoded bytes (is encoded value really an INT?)]; }]"}  
at

---

<div class="post-metadata">

**Author:** ![inlikefletch](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/inlikefletch/32/4834_2.png) [@inlikefletch](https://discuss.elastic.co/u/inlikefletch)\
**Post date:** [August 20, 2015, 6:40pm UTC](https://discuss.elastic.co/t/search-exceptions-is-value-really-an-int-field-names-type/27777/2 "2015-08-20T18:40:37Z")

</div>

If I could just get some help with the curl statement to delete all documents and indexes with a specific field name.

The reference guide is not doing it for me.

Thanks,  
Jason

---

<div class="post-metadata">

**Author:** ![jpountz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jpountz/32/45836_2.png) [@jpountz](https://discuss.elastic.co/u/jpountz)\
**Post date:** [August 21, 2015, 3:26pm UTC](https://discuss.elastic.co/t/search-exceptions-is-value-really-an-int-field-names-type/27777/3 "2015-08-21T15:26:13Z")

</div>

> [@inlikefletch](#):
>
> I suspect it to be because I have some documents that have fields of the same name and a different type. I am struggling through the reference guide to get curl statement to get/delete documents with this specific field name.

Exactly, this is something that Elasticsearch 1.x is lenient about and which will not be allowed anymore in Elasticsearch 2.0. I think the best advise here would be to reindex your content while avoiding to have the same field name being mapped differently across types.

---

<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 5, 2017, 11:54pm UTC](https://discuss.elastic.co/t/search-exceptions-is-value-really-an-int-field-names-type/27777/4 "2017-07-05T23:54:35Z")

</div>


