Hello I have a problem..
I have my elastica repository
namespace XX\xxx;
use FOS\ElasticaBundle\Repository;
class TestRepository extends Repository
{
public function getExamples($argOne, $argTwo) {
$query = new BoolQuery();
$matchOne = new Match();
$matchOne->setField('column_one', $argOne);
$query->addMust($matchOne);
$matchTwo = new Match();
$matchOne->setField('column_two', $argTwo);
$query->addMust($matchTwo);
return $this->find($query);
}
}
And mapping
...
types:
example:
mappings:
column_one:
type: integer
column_two:
type: string
column_three:
type: date
My problem is..
I need to get query group by column three. And I have no idea how to do this.
I'll be grateful for the informations..