PHP Class ElasticSearcher\Managers\IndicesManager

Inheritance: extends ElasticSearcher\Abstracts\AbstractManager
Datei anzeigen Open project: madewithlove/elasticsearcher Class Usage Examples

Public Methods

Method Description
create ( string $indexName )
delete ( string $indexName )
deleteType ( string $indexName, string $type )
exists ( string $indexName ) : boolean
existsType ( string $indexName, string $type ) : boolean
get ( string $indexName ) : array
getRegistered ( string $indexName ) : AbstractIndex Get a registered index. When not found it will throw an exception.
getType ( string $indexName, string $type ) : array
indices ( ) : mixed
isRegistered ( string $indexName ) : boolean
register ( AbstractIndex $index ) : AbstractIndex
registerIndices ( array $indices )
registeredIndices ( ) : array
unregister ( string $indexName ) : AbstractIndex
update ( string $indexName ) Update the index and all its types. This should be used when wanting to reflect changes in the Index object with the elasticsearch server.

Method Details

create() public method

public create ( string $indexName )
$indexName string

delete() public method

public delete ( string $indexName )
$indexName string

deleteType() public method

public deleteType ( string $indexName, string $type )
$indexName string
$type string

exists() public method

public exists ( string $indexName ) : boolean
$indexName string
return boolean

existsType() public method

public existsType ( string $indexName, string $type ) : boolean
$indexName string
$type string
return boolean

get() public method

public get ( string $indexName ) : array
$indexName string
return array

getRegistered() public method

If you do not want the exception being thrown, use getRegistered first.
public getRegistered ( string $indexName ) : AbstractIndex
$indexName string
return ElasticSearcher\Abstracts\AbstractIndex

getType() public method

public getType ( string $indexName, string $type ) : array
$indexName string
$type string
return array

indices() public method

public indices ( ) : mixed
return mixed

isRegistered() public method

public isRegistered ( string $indexName ) : boolean
$indexName string
return boolean

register() public method

public register ( AbstractIndex $index ) : AbstractIndex
$index ElasticSearcher\Abstracts\AbstractIndex
return ElasticSearcher\Abstracts\AbstractIndex

registerIndices() public method

public registerIndices ( array $indices )
$indices array

registeredIndices() public method

public registeredIndices ( ) : array
return array

unregister() public method

public unregister ( string $indexName ) : AbstractIndex
$indexName string
return ElasticSearcher\Abstracts\AbstractIndex

update() public method

Update the index and all its types. This should be used when wanting to reflect changes in the Index object with the elasticsearch server.
public update ( string $indexName )
$indexName string