-
Notifications
You must be signed in to change notification settings - Fork 1
4.1 Index
Osushi edited this page Dec 7, 2018
·
2 revisions
[model]
$model->createIndex();
[client]
$client->index('index')->createIndex();
[model]
$model->createIndex(function($index){
$index->shards(5)->replicas(1)->mappings([
'my_type' => [
'properties' => [
'my_field' => [
'type' => 'string',
],
]
]
]);
});
[client]
$client->index('index')->createIndex(function($index){
$index->shards(5)->replicas(1)->mappings([
'my_type' => [
'properties' => [
'my_field' => [
'type' => 'string',
],
]
]
]);
});
[model]
$model->dropIndex();
[client]
$client->index('index')->dropIndex();
[model]
$model->existsIndex();
[client]
$client->index('index')->existsIndex();
[model]
$model->refreshIndex();
[client]
$client->index('index')->refreshIndex();