Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I can not import JSON data into existing elastic index. #169

Open
mridulsri opened this issue Jul 24, 2019 · 0 comments
Open

I can not import JSON data into existing elastic index. #169

mridulsri opened this issue Jul 24, 2019 · 0 comments

Comments

@mridulsri
Copy link

mridulsri commented Jul 24, 2019

I can not import JSON file data into an existing elastic search using "abc" cli tool. I have created manually settings and mapping on index "events"

abc import --src_type=json --src_uri="event_listing.json" --typename=event "http://localhost:9200/events"

the event_listing.json contains an array of documents
like:
[{_id:1,name:"test",desc:"test"},{_id:2,name:"test",desc:"test"}]

But When I change the index name in URL it gets imported. like:

abc import --src_type=json --src_uri="event_listing.json" --typename=event "http://localhost:9200/events1"

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

No branches or pull requests

1 participant