appbaseio / appbaseio/abc

I can not import JSON data into existing elastic index.

Open
#169 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
471
Forks
47
PR merge metrics
No merged PRs in 30d

Description

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"

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.