Answer the question
In order to leave comments, you need to log in
How to make multi-word search work in elasticsearch if the words are not together?
It doesn't work with these settings:
$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'
]
]
]
];
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question