Elasticsearch stores plain text

Did elasticsearch allows only to store data in json format? or is to possible to pass plain text to store in elasticsearch?

You need to send documents as JSON. Like:

DELETE /index
POST /index/_doc
{
  "content": "All the text you want to index here"
}

You can add more fields if you want.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.