Exemplo n.º 1
0
 public function searchTags($searchphrase)
 {
     $fieldQuery = new \Elastica\Query\Match();
     $fieldQuery->setFieldQuery('slug', $searchphrase);
     $fieldQuery->setFieldParam('slug', 'analyzer', 'my_analyzer');
     return $this->tagFinder->find($fieldQuery);
 }