Hey,

from the elasticsearch exception it looks as if you did not specify an
index name to create. Not sure how the scala client works..


--Alex


On Mon, Apr 21, 2014 at 7:37 PM, miki haiat <[email protected]> wrote:

> HI ,
>
> I using elastic4s for an api client  , i cant index anything
> im getting this error
>
> [2014-04-21 20:34:02,735][DEBUG][action.admin.indices.create] [Captain UK]
> [] failed to create
> java.lang.StringIndexOutOfBoundsException: String index out of range: 0
>  at java.lang.String.charAt(String.java:658)
>  at org.elasticsearch.cluster.metadata.MetaDataCreateIndexService.
> validateIndexName(MetaDataCreateIndexService.java:168)
>  at org.elasticsearch.cluster.metadata.MetaDataCreateIndexService.validate
> (MetaDataCreateIndexService.java:523)
>  at org.elasticsearch.cluster.metadata.MetaDataCreateIndexService.
> access$100(MetaDataCreateIndexService.java:87)
>  at org.elasticsearch.cluster.metadata.MetaDataCreateIndexService$2.
> execute(MetaDataCreateIndexService.java:220)
>  at org.elasticsearch.cluster.service.InternalClusterService$UpdateTask.
> run(InternalClusterService.java:308)
>  at org.elasticsearch.common.util.concurrent.
> PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.run(
> PrioritizedEsThreadPoolExecutor.java:134)
>  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.
> java:1145)
>  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.
> java:615)
>  at java.lang.Thread.run(Thread.java:745)
>
> I tried several method and option but the result is the same ,
>
> what im i doing wrong  ??
>
> thanks
> miki
>
> --
> 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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/elasticsearch/70f69cec-12d0-4306-b0b1-11c703e8b507%40googlegroups.com<https://groups.google.com/d/msgid/elasticsearch/70f69cec-12d0-4306-b0b1-11c703e8b507%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/CAGCwEM9HOe4zXAo4uO0KWUeO5VNmEk4Nu%3DwayG0F10fpct_SDw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to