DELETE blogs
POST blogs/_bulk
{ "index":{"_id":1 }}
{"title":"Apple iPad","content":"Apple iPad,Apple iPad" }
{ "index":{"_id":2 }}
{ "title":"Apple iPad,Apple iPad","content":"Apple iPad"}
POST blogs/_search
{
"query": {
"bool": {
"should": [
{"match": {
"title": {
"query": "apple,ipad",
"boost": 1.1
}
}},
{"match": {
"content": {
"query": "apple,ipad",
"boost": 2
}
}}
]
}
}
}
POST /news/_bulk
{ "index":{"_