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

Get Payload from File #4

Closed
rawkode opened this issue Oct 26, 2017 · 2 comments
Closed

Get Payload from File #4

rawkode opened this issue Oct 26, 2017 · 2 comments

Comments

@rawkode
Copy link

rawkode commented Oct 26, 2017

Hey, awesome work on this.

I was wondering how difficult it would be to allow the following:

PUT /my-index
!./opt/elasticsearch/mapping.json

Where !./path will load the contents of a file and use that as the body payload?

@hsen-dev
Copy link
Owner

hsen-dev commented Nov 3, 2017

Thank you very much if you add its documentation on README.md.

@darkread
Copy link

darkread commented Jun 16, 2024

POST /example/_bulk
{"index":{}}
{"nps_link":"https://www.nps.gov/wrst/index.htm","title":"Wrangell–St. Elias","date_established":"1980-12-02T06:00:00+00:00","world_heritage_site":"true","states":["Alaska"],"description":"An over 8 million acres (32,375 km2) plot of mountainous country—the largest National Park","visitors":79047,"id":"park_wrangell–st.-elias","location":"61,-142","square_km":33682.6,"acres":8323146.48}

I load data from 1.json,but vscode-elastic report Invalid json

{"index":{}}
{"nps_link":"https://www.nps.gov/wrst/index.htm","title":"Wrangell–St. Elias","date_established":"1980-12-02T06:00:00+00:00","world_heritage_site":"true","states":["Alaska"],"description":"An over 8 million acres (32,375 km2) plot of mountainous country—the largest National Park","visitors":79047,"id":"park_wrangell–st.-elias","location":"61,-142","square_km":33682.6,"acres":8323146.48}

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

No branches or pull requests

3 participants