public function testMatchZeroTerm()
{
$client = $this->_getClient();
$index = $client->getIndex('test');
$index->create(array(), true);
$type = $index->getType('test');
$doc = new Document(1, array('name' => 'Basel-Stadt'));
$type->addDocument($doc);
$doc = new Document(2, array('name' => 'New York'));
$type->addDocument($doc);
$index->refresh();
$query = new Match();
$query->setFieldQuery('name', '');
$query->setFieldZeroTermsQuery('name', Match::ZERO_TERM_ALL);
$resultSet = $index->search($query);
$this->assertEquals(2, $resultSet->count());
}