Я использую symfony 4 + fos elasticsearch. Этот код работает для меня:
$finder = $finder->getRepository(\App\Entity\User::class)->find($searchTerm);
какой локон
curl -XGET 'http://localhost:9200/app/user/_search' -d '{"query":{"match_all":{}}}'
or
curl -XGET 'http://localhost:9200/app/user/_search' -d '{"query":{"query_string":{"query":"a"}}}'
Я хочу использовать match-query-phrase-prefix
https://www.elastic.co/guide/[...]dsl-match-query-phrase-prefix
Как это сделать в фос? Документации очень мало. Пожалуйста помоги.