Closed damianoporta closed 8 years ago
Hello, I should use match_phrase_prefix (https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-match-query.html)
it seems not implemented here, at the moment i am testing the query with this json:
{ "fields":[ "name" ], "query":{ "match_phrase_prefix":{ "name":{ "query":"test", "slop":3 } } } }
how should i build this query? Thanks!
I think for now you'd have to directly set the query using $query->query()
$query->query()
This is the solution:
$query->query(new \Elastica\Query\MatchPhrasePrefix('fullname', ['query' => $args['fullname'], 'slop' => 2]));
Hello, I should use match_phrase_prefix (https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-match-query.html)
it seems not implemented here, at the moment i am testing the query with this json:
how should i build this query? Thanks!