Skip to content

Commit 11a7127

Browse files
committed
Fix readme example.
1 parent 1e6a4d9 commit 11a7127

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ $client->search([
4747

4848
$client = new \Elasticsearch\Client();
4949
$indexRotator = new IndexRotator($client, 'pizza_shops');
50-
$newlyBuiltIndexName = $this->buildIndex($client);
50+
// Build your index here
51+
$newlyBuiltIndexName = 'my_new_built_index_name';
5152
$indexRotator->copyPrimaryIndexToSecondary();
5253
$indexRotator->setPrimaryIndex($newlyBuiltIndexName);
5354
// optionally remove the old index right now

0 commit comments

Comments
 (0)