Beispiel #1
0
 public function testAddFieldWithTypeLazy()
 {
     $mapping = new \ElasticSearch\Mapping();
     // Basic mappings:
     $exported = $mapping->field('tweet', 'string')->export();
     $this->assert->array($exported)->isNotEmpty()->isEqualTo(array('properties' => array('tweet' => array('type' => 'string'))));
 }