I have a .json file and I want to load into elastic search for filtering.
Asked
Active
Viewed 4,320 times
1
-
2possible duplicate of [Import/Index a JSON file into Elasticsearch](http://stackoverflow.com/questions/15936616/import-index-a-json-file-into-elasticsearch) – szeitlin Apr 06 '15 at 20:50
-
This must help: https://stackoverflow.com/a/65213529/3357884 – Mahan Dec 09 '20 at 09:02
1 Answers
1
A simple way to get started is to use curl. If you have a JSON file with a single document, you could index it like this:
$ curl -XPOST "http://localhost:9200/example/default" -d@file.json
example
is the index name and default
the doc type.
For more information, take a look at the docs:

miku
- 181,842
- 47
- 306
- 310