【发布时间】:2016-03-06 20:42:58
【问题描述】:
你好,我有问题..
我有我的 elastica 存储库
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);
}
}
和映射
...
types:
example:
mappings:
column_one:
type: integer
column_two:
type: string
column_three:
type: date
我的问题是……
我需要按第三列获取查询组。我不知道该怎么做。
我会很感激你的信息..
【问题讨论】:
标签: symfony elasticsearch elastica foselasticabundle