public function match($field = null, $values = null) { return new Match($field, $values); }
/** * @group unit */ public function testMatch() { $queryDSL = new DSL\Query(); $match = $queryDSL->match('field', 'match'); $this->assertEquals('match', $match->getParam('field')); $this->assertInstanceOf('Elastica\\Query\\Match', $match); }