Esempio n. 1
0
 /**
  * @param string $term
  */
 public function queryNameSuggestion($term)
 {
     $subquery = new CM_Elasticsearch_Query_Location();
     $subquery->queryMatch('name.prefix', $term, array('operator' => 'or', 'analyzer' => 'standard'));
     $subquery->queryMatch('nameFull.prefix', $term, array('operator' => 'and', 'analyzer' => 'standard'));
     $this->query($subquery);
 }