Пример #1
0
 /**
  * {@inheritDoc}
  */
 public function buildQuery(QueryInterface $query)
 {
     return ['range' => [$query->getField() => $query->getBounds()]];
 }
Пример #2
0
 /**
  * {@inheritDoc}
  */
 public function buildQuery(QueryInterface $query)
 {
     return ['terms' => [$query->getField() => $query->getValues()]];
 }
Пример #3
0
 /**
  * {@inheritDoc}
  */
 public function buildQuery(QueryInterface $query)
 {
     $searchQueryParams = ['query' => $query->getQueryText(), 'minimum_should_match' => $query->getMinimumShouldMatch(), 'boost' => $query->getBoost()];
     return ['match' => [$query->getField() => $searchQueryParams]];
 }
Пример #4
0
 /**
  * {@inheritDoc}
  */
 public function buildQuery(QueryInterface $query)
 {
     return ['missing' => ['field' => $query->getField()]];
 }