Skip to content
This repository has been archived by the owner on Nov 7, 2021. It is now read-only.

Create Index fails when integrated with Elasticsearch 5.0 #48

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

bhumikathakker
Copy link

Removed extra / in base url
Url generated was baseurl//myindex/testtype/. With Elasticsearch 5.0 create index request throws java.lang.StringIndexOutOfBoundsException: String index out of range: 0 - params: {index=,op_type=create, id=testtype, type=myindex}

Removed extra / in base url
Url generated was baseurl//myindex/testtype/. With Elasticsearch 5.0 it throws java.lang.StringIndexOutOfBoundsException: String index out of range: 0 -  params: {index=, op_type=create, id=testtype, type=myindex}
@bloodbare
Copy link

ouch I did also a pull request for the same #72 removing the starting '/' on make_path. No matter for me which is merged.

@merrellb
Copy link

I think this looks like the right fix. Any idea how this didn't break in previous versions of ES?

awestendorf added a commit to agoragames/aioes that referenced this pull request Feb 28, 2017
@zunkree
Copy link

zunkree commented Mar 13, 2017

Any news?

@bhumikathakker
Copy link
Author

These are my findings:

Ran the following curl commands on Elasticsearch 2.x

Ran the following curl commands on elasticsearch 5.x

@popravich
Copy link
Contributor

Hi, guys!
I'm currently looking into this, will try to fix this in a few days.

@popravich
Copy link
Contributor

Hey, guys! Please check this out with latest master!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants