We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1e6a4d9 commit 11a7127Copy full SHA for 11a7127
README.md
@@ -47,7 +47,8 @@ $client->search([
47
48
$client = new \Elasticsearch\Client();
49
$indexRotator = new IndexRotator($client, 'pizza_shops');
50
-$newlyBuiltIndexName = $this->buildIndex($client);
+// Build your index here
51
+$newlyBuiltIndexName = 'my_new_built_index_name';
52
$indexRotator->copyPrimaryIndexToSecondary();
53
$indexRotator->setPrimaryIndex($newlyBuiltIndexName);
54
// optionally remove the old index right now
0 commit comments