PHP Class Elastica\Tool\CrossIndex

Author: Manuel Andreo Garcia ([email protected])
Afficher le fichier Open project: ruflin/elastica Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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
Résultat Elastica\Index The new index object

reindex() public static méthode

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
Résultat Elastica\Index The new index object