match() public method

match query.
public match ( string $field = null, mixed $values = null ) : Match
$field string
$values mixed
return Elastica\Query\Match
Example #1
0
 /**
  * @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);
 }