Elastica\Search::getTypes PHP Method

getTypes() public method

Return array of types.
public getTypes ( ) : array
return array List of types
    public function getTypes()
    {
        return $this->_types;
    }

Usage Example

示例#1
0
 public function testAddTypes()
 {
     $client = $this->_getClient();
     $search = new Search($client);
     $index = $this->_createIndex();
     $types = array();
     $types[] = $index->getType('type1');
     $types[] = $index->getType('type2');
     $search->addTypes($types);
     $this->assertEquals(2, count($search->getTypes()));
 }
All Usage Examples Of Elastica\Search::getTypes