Skip to main content

PUT: Add one document

To store data inside Elasticsearch

  • Run this PUT command using DevTools
  • [TODO: link to What is DevTools / Environment setup]
PUT eighties_movies/_doc/1
"title": "Pretty in Pink",
"category": "Teen",
"released": "January 29, 1986",
"star": {
"first_name": "Molly",
"last_name": "Ringwald",
"character": "Andie"
  • This stores one document with unique id 1 inside the index named eighties_movies

Elasticsearch is a document store