# Elasticsearch-hadoop ES-Spout String Index out of range

**URL:** <https://discuss.elastic.co/t/elasticsearch-hadoop-es-spout-string-index-out-of-range/72853>\
**Category:** Elasticsearch\
**Tags:** es-hadoop\
**Created:** [January 26, 2017, 6:27am UTC](https://discuss.elastic.co/t/elasticsearch-hadoop-es-spout-string-index-out-of-range/72853 "2017-01-26T06:27:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aldibe](https://avatars.discourse-cdn.com/v4/letter/a/b4bc9f/32.png) [@Aldibe](https://discuss.elastic.co/u/Aldibe)\
**Post date:** [January 26, 2017, 6:27am UTC](https://discuss.elastic.co/t/elasticsearch-hadoop-es-spout-string-index-out-of-range/72853/1 "2017-01-26T06:27:15Z")

</div>

So first, I'm still a novice in both apache storm and elasticsearch, so please tell me if i did anything wrong in my code. I'm trying to build a simple topology that takes data from elasticsearch index using ESSpout and sends it to another index using ESBolt. The code can be seen here:

> <https://stackoverflow.com/questions/41866866/elasticsearch-hadoop-es-spout-error>

  
The problem is that my spout cannot get the data from my index. It always terminate with "StringIndexOutOfBoundsException: String index out of range: -1" error.  
Any help would be highly appreciated. Thanks.

Edit: updated link

---

<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:** [February 23, 2017, 6:27am UTC](https://discuss.elastic.co/t/elasticsearch-hadoop-es-spout-string-index-out-of-range/72853/2 "2017-02-23T06:27:21Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
