Skip to content

Instantly share code, notes, and snippets.

POST /my-index/_search
{
"query" : {
"percolate" : {
"field" : "query",
"document" : {
"message" : "MARIB, Yemen MARIB, Yemen (AP) — The number etched on the bracelet around Mohammed's wrist gave the 13-year-old soldier comfort as missiles fired from enemy warplanes shook the earth beneath him. For two years Mohammed fought with Yemen's Houthi rebels against a military coalition led by Saudi Arabia and backed by the United States. He says he tortured and killed people and didn't care whether he lived or died. But if he died, the bracelet would guarantee his body made it home. \"When I become a martyr, they enter my number in the computer, retrieve my picture and my name, then print them with the name 'Martyr' underneath,\" Mohammed said. It would be pasted to the lid of his coffin for return to his family. Mohammed was among 18 former child soldiers interviewed by The Associated Press who described the Houthis' unrelenting efficiency when it comes to the rec
POST /my-index/_search
{
"query" : {
"percolate" : {
"field" : "query",
"document" : {
"message" : "MARIB, Yemen MARIB, Yemen (AP) — The number etched on the bracelet around Mohammed's wrist gave the 13-year-old soldier comfort as missiles fired from enemy warplanes shook the earth beneath him. For two years Mohammed fought with Yemen's Houthi rebels against a military coalition led by Saudi Arabia and backed by the United States. He says he tortured and killed people and didn't care whether he lived or died. But if he died, the bracelet would guarantee his body made it home. \"When I become a martyr, they enter my number in the computer, retrieve my picture and my name, then print them with the name 'Martyr' underneath,\" Mohammed said. It would be pasted to the lid of his coffin for return to his family. Mohammed was among 18 former child soldiers interviewed by The Associated Press who described the Houthis' unrelenting efficiency when it comes to the rec
POST /my-index/_search
{
"query" : {
"percolate" : {
"field" : "query",
"document" : {
"message" : "MARIB, Yemen MARIB, Yemen (AP) — The number etched on the bracelet around Mohammed's wrist gave the 13-year-old soldier comfort as missiles fired from enemy warplanes shook the earth beneath him. For two years Mohammed fought with Yemen's Houthi rebels against a military coalition led by Saudi Arabia and backed by the United States. He says he tortured and killed people and didn't care whether he lived or died. But if he died, the bracelet would guarantee his body made it home. \"When I become a martyr, they enter my number in the computer, retrieve my picture and my name, then print them with the name 'Martyr' underneath,\" Mohammed said. It would be pasted to the lid of his coffin for return to his family. Mohammed was among 18 former child soldiers interviewed by The Associated Press who described the Houthis' unrelenting efficiency when it comes to the rec
PUT /my-index
{
"settings": {
"index": {
"number_of_replicas": "0",
"number_of_shards": "1"
}
},
"mappings": {
"_doc": {