# Not able to create index in elasticsearch-0.90.5 with lengthy names

**URL:** <https://discuss.elastic.co/t/not-able-to-create-index-in-elasticsearch-0-90-5-with-lengthy-names/16738>\
**Category:** Elasticsearch\
**Created:** [April 1, 2014, 2:32pm UTC](https://discuss.elastic.co/t/not-able-to-create-index-in-elasticsearch-0-90-5-with-lengthy-names/16738 "2014-04-01T14:32:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hanish\_Bansal](https://avatars.discourse-cdn.com/v4/letter/h/e36b37/32.png) [@Hanish\_Bansal](https://discuss.elastic.co/u/Hanish_Bansal)\
**Post date:** [April 1, 2014, 2:32pm UTC](https://discuss.elastic.co/t/not-able-to-create-index-in-elasticsearch-0-90-5-with-lengthy-names/16738/1 "2014-04-01T14:32:32Z")

</div>

Hi All,

We are trying to create indices with below name format

_testindex\_16161\_1396381784242_

Till elasticsearch-0.90.2, we are able to create indices with this  
naming convention.

When i try to create to index with same name as above mentioned in  
elasticsearch-0.90.5, i get below

exception:

[2014-04-01 18:17:41,683][DEBUG][action.admin.indices.create] [node0]  
[testindex\_16161\_1396375678203] failed to create  
java.lang.NumberFormatException: For input string: "1396375678203"  
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)  
at java.lang.Integer.parseInt(Integer.java:461)  
at java.lang.Integer.valueOf(Integer.java:554)  
at org.elasticsearch.cluster.routing.RoutingIndexSorter$ShardComparator.compare(RoutingIndexSorter.java:89)  
at org.elasticsearch.cluster.routing.RoutingIndexSorter$ShardComparator.compare(RoutingIndexSorter.java:82)  
at org.apache.lucene.util.CollectionUtil$ListIntroSorter.compare(CollectionUtil.java:64)  
at org.apache.lucene.util.Sorter.insertionSort(Sorter.java:169)  
at org.apache.lucene.util.IntroSorter.quicksort(IntroSorter.java:46)  
at org.apache.lucene.util.IntroSorter.sort(IntroSorter.java:41)  
at org.apache.lucene.util.CollectionUtil.introSort(CollectionUtil.java:137)  
at org.elasticsearch.cluster.routing.RoutingIndexSorter.getSortedList(RoutingIndexSorter.java:57)  
at org.elasticsearch.cluster.routing.RoutingNodes.unassigned(RoutingNodes.java:232)  
at org.elasticsearch.cluster.routing.allocation.AllocationService.reroute(AllocationService.java:154)  
at org.elasticsearch.cluster.metadata.MetaDataCreateIndexService$2.execute(MetaDataCreateIndexService.java:359)  
at org.elasticsearch.cluster.service.InternalClusterService$UpdateTask.run(InternalClusterService.java:299)  
at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.run(PrioritizedEsThreadPoolExecutor.java:135)  
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)  
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)  
at java.lang.Thread.run(Thread.java:662)

If i remove some digits to short the index name for example

_testindex\_16161\_1396381_ and then try to create, in that case i am  
able to create index successfully.

Is there any limit on index name in elasticsearch-0.90.5, if not how  
can i resolve this issue?

--  
_Thanks & Regards_  
_Hanish Bansal_

--  
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).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAB0WE8YGhUumZs209zZFvAa5tk2m0HYoLQeXyLdvL6Gc\_8nHGw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAB0WE8YGhUumZs209zZFvAa5tk2m0HYoLQeXyLdvL6Gc_8nHGw%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Binh\_Ly\_2](https://avatars.discourse-cdn.com/v4/letter/b/d07c76/32.png) [@Binh\_Ly\_2](https://discuss.elastic.co/u/Binh_Ly_2)\
**Post date:** [April 1, 2014, 3:35pm UTC](https://discuss.elastic.co/t/not-able-to-create-index-in-elasticsearch-0-90-5-with-lengthy-names/16738/2 "2014-04-01T15:35:03Z")

</div>

Can you show how you create the index? I just tried this on 0.90.5 and it  
seemed to work for me:

$ curl -XPUT localhost:9200/testindex\_16161\_1396381784242  
{"ok":true,"acknowledged":true}

--  
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).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/9c393e9c-975a-466d-8086-6d8068fd002e%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/9c393e9c-975a-466d-8086-6d8068fd002e%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Hanish\_Bansal](https://avatars.discourse-cdn.com/v4/letter/h/e36b37/32.png) [@Hanish\_Bansal](https://discuss.elastic.co/u/Hanish_Bansal)\
**Post date:** [April 5, 2014, 4:21am UTC](https://discuss.elastic.co/t/not-able-to-create-index-in-elasticsearch-0-90-5-with-lengthy-names/16738/3 "2014-04-05T04:21:57Z")

</div>

Hi Binh,

I was also using same call as you mentioned. I found the issue, actually  
few months back i applied a custom plugin in my elastic-search and just  
forgot about that. Now i tried with fresh elastic-search and its working  
fine.

Thanks for your response !!

On Tue, Apr 1, 2014 at 9:05 PM, Binh Ly [binhly\_es@yahoo.com](mailto:binhly_es@yahoo.com) wrote:

> Can you show how you create the index? I just tried this on 0.90.5 and it  
> seemed to work for me:
> 
> $ curl -XPUT localhost:9200/testindex\_16161\_1396381784242  
> {"ok":true,"acknowledged":true}
> 
> --  
> 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).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/9c393e9c-975a-466d-8086-6d8068fd002e%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/9c393e9c-975a-466d-8086-6d8068fd002e%40googlegroups.com)[https://groups.google.com/d/msgid/elasticsearch/9c393e9c-975a-466d-8086-6d8068fd002e%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/9c393e9c-975a-466d-8086-6d8068fd002e%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
_Thanks & Regards_  
_Hanish Bansal_

--  
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).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAB0WE8YLJcuQNBN52xCbs%3DcAkDm3YYdDPo%2BeK%2BzuUrTuPiuAUw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAB0WE8YLJcuQNBN52xCbs%3DcAkDm3YYdDPo%2BeK%2BzuUrTuPiuAUw%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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, 1:38am UTC](https://discuss.elastic.co/t/not-able-to-create-index-in-elasticsearch-0-90-5-with-lengthy-names/16738/4 "2017-07-06T01:38:01Z")

</div>

Closed on July 6, 2017, 1:38am UTC


