$params = [
'index' => 'myapp',
'type' => 'post',
'size' => 10,
'from' => 10,
'body' => [
'query' => [
'match_phrase_prefix' => [
'post_title' => [
"query" => $_POST['test'],
'analyzer' => 'russian'
]
]
],
'sort' => [
'post_title' => [
'order' => 'DESC'
]
]
]
];