PHP Class Elastica\Tool\CrossIndex

Author: Manuel Andreo Garcia ([email protected])
Datei anzeigen Open project: ruflin/elastica Class Usage Examples

Public Methods

Method Description
copy ( Index $oldIndex, Index $newIndex, array $options = [] ) : Index Copies type mappings and documents from an old index to a new index.
reindex ( Index $oldIndex, Index $newIndex, array $options = [] ) : Index Reindex documents from an old index to a new index.

Method Details

copy() public static method

Copies type mappings and documents from an old index to a new index.
See also: Elastica\Tool\CrossIndex::reindex()
public static copy ( Index $oldIndex, Index $newIndex, array $options = [] ) : Index
$oldIndex Elastica\Index
$newIndex Elastica\Index
$options array keys: CrossIndex::OPTION_* constants
return Elastica\Index The new index object

reindex() public static method

Reindex documents from an old index to a new index.
public static reindex ( Index $oldIndex, Index $newIndex, array $options = [] ) : Index
$oldIndex Elastica\Index
$newIndex Elastica\Index
$options array keys: CrossIndex::OPTION_* constants
return Elastica\Index The new index object