1

I have a .json file and I want to load into elastic search for filtering.

Cœur
  • 37,241
  • 25
  • 195
  • 267
deepak
  • 253
  • 1
  • 4
  • 10
  • 2
    possible 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 Answers1

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