Beispiel #1
0
 public function testAddTypeConstrainedMapping()
 {
     $mapping = new \ElasticSearch\Mapping(array('tweet' => array('type' => 'string')), array('type' => 'tweet'));
     $exported = $mapping->export();
     $this->assert->array($exported)->isNotEmpty()->hasKey('properties')->notHasKey('type');
 }