PUT testscore/_bulk
{ "index":{ "_id":1 }}
{"content":"we use Elasticsearch to power the search" }
{ "index":{ "_id":2 }}
{"content":"we like elasticsearch " }
{ "index":{ "_id":3 }}
{"content":"The scoring of documents is caculated by the scoring formula " }
{ "index":{ "_id":4 }}
{"content":"yuo know, for search " }
POST testscore/_search
{
"explain": true,
"query": {
"match": {
//"content": "elasticsearch"
//"content": "the"
"content": "the elasticsearch"
}
}
}