/**
  * {@inheritdoc}
  */
 public function toArray()
 {
     $query = [];
     $query['match'] = $this->query->toArray();
     $query['end'] = $this->end;
     $output = $this->processArray($query);
     return [$this->getType() => $output];
 }
 /**
  * {@inheritdoc}
  */
 public function toArray()
 {
     $query = ['include' => [$this->include->getType() => $this->include->toArray()], 'exclude' => [$this->exclude->getType() => $this->exclude->toArray()]];
     return $query;
 }
Example #3
0
 /**
  * {@inheritdoc}
  */
 public function toArray()
 {
     $query = ['include' => $this->include->toArray(), 'exclude' => $this->exclude->toArray()];
     return [$this->getType() => $this->processArray($query)];
 }