Toggle navigation
Hot Examples
ES
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Buscar
Inicio
Elastica
Tool
CrossIndex
PHP Class Elastica\Tool\CrossIndex
Author:
Manuel Andreo Garcia (
[email protected]
)
Mostrar archivo
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.
See link:
https://www.elastic.co/guide/en/elasticsearch/guide/master/reindex.html
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