Elastica\Search::getIndices PHP Méthode

getIndices() public méthode

Return array of indices.
public getIndices ( ) : array
Résultat array List of index names
    public function getIndices()
    {
        return $this->_indices;
    }

Usage Example

Exemple #1
0
 public function testAddIndices()
 {
     $client = $this->_getClient();
     $search = new Search($client);
     $indices = array();
     $indices[] = $client->getIndex('elastica_test1');
     $indices[] = $client->getIndex('elastica_test2');
     $search->addIndices($indices);
     $this->assertEquals(2, count($search->getIndices()));
 }
All Usage Examples Of Elastica\Search::getIndices