Skip to content

Instantly share code, notes, and snippets.

DELETE demotest
POST /demotest/demotest/2
{
"name": "Duvvuri ram gopal reddy"
}
POST /demotest/demotest/1
{
"name": "ram gopal reddy"
}
POST /demotest/demotest/3
GET /attachmenttest/message/_search
{
"query": {
"match_all": {}
},
"fielddata_fields": ["indexedBody.content","indexedBody.content_type"],
"_source": [null]
}
DELETE attachmenttest
PUT attachmenttest
{
"mappings": {
"message": {
"_source": {
"enabled": true
},
"properties": {
"indexedBody": {