diff --git a/Classes/Command/IndexCommandController.php b/Classes/Command/IndexCommandController.php index dff0fb3..b01800e 100644 --- a/Classes/Command/IndexCommandController.php +++ b/Classes/Command/IndexCommandController.php @@ -54,7 +54,7 @@ class IndexCommandController extends CommandController { $this->executeForIdentifier($identifiers, function (IndexerInterface $indexer) { $indexer->indexAllDocuments(); - $this->outputLine('Documents in indice ' . $indexer->getIdentifier() . ' were indexed.'); + $this->outputLine('Documents in index ' . $indexer->getIdentifier() . ' were indexed.'); }); } @@ -67,7 +67,7 @@ class IndexCommandController extends CommandController { $this->executeForIdentifier($identifiers, function (IndexerInterface $indexer) { $indexer->deleteDocuments(); - $this->outputLine('Documents in indice ' . $indexer->getIdentifier() . ' were deleted.'); + $this->outputLine('Documents in index ' . $indexer->getIdentifier() . ' were deleted.'); }); } diff --git a/Documentation/source/usage.rst b/Documentation/source/usage.rst index 8e0d93c..687ae2d 100644 --- a/Documentation/source/usage.rst +++ b/Documentation/source/usage.rst @@ -33,7 +33,7 @@ You can trigger deletion for indexes from CLI:: This will delete the index for the table ``pages``. Deletion means removing all documents from the index. -Multiple indices can be called by providing a comma separated list of identifiers as +Multiple indexes can be called by providing a comma separated list of identifiers as a single argument. Spaces before and after commas are ignored. .. _usage_manual_flush: @@ -49,7 +49,7 @@ You can trigger flush for indexes from CLI:: This will flush the index for the table ``pages``. Flush means removing the index from backend. -Multiple indices can be called by providing a comma separated list of identifiers as +Multiple indexes can be called by providing a comma separated list of identifiers as a single argument. Spaces before and after commas are ignored. .. _usage_auto_indexing: diff --git a/Tests/Unit/Command/IndexCommandControllerTest.php b/Tests/Unit/Command/IndexCommandControllerTest.php index d722f6d..2b52109 100644 --- a/Tests/Unit/Command/IndexCommandControllerTest.php +++ b/Tests/Unit/Command/IndexCommandControllerTest.php @@ -85,7 +85,7 @@ class IndexCommandControllerTest extends AbstractUnitTestCase ->method('quit'); $this->subject->expects($this->once()) ->method('outputLine') - ->with('Documents in indice allowedTable were indexed.'); + ->with('Documents in index allowedTable were indexed.'); $this->indexerFactory->expects($this->once()) ->method('getIndexer') ->with('allowedTable') @@ -107,7 +107,7 @@ class IndexCommandControllerTest extends AbstractUnitTestCase ->willReturn('allowedTable'); $this->subject->expects($this->once()) ->method('outputLine') - ->with('Documents in indice allowedTable were deleted.'); + ->with('Documents in index allowedTable were deleted.'); $this->indexerFactory->expects($this->once()) ->method('getIndexer') ->with('allowedTable') @@ -131,7 +131,7 @@ class IndexCommandControllerTest extends AbstractUnitTestCase ->willReturn('pages'); $this->subject->expects($this->once()) ->method('outputLine') - ->with('Indice pages was flushed.'); + ->with('Index pages was deleted.'); $this->indexerFactory->expects($this->once()) ->method('getIndexer') ->with('pages') @@ -177,8 +177,8 @@ class IndexCommandControllerTest extends AbstractUnitTestCase $this->subject->expects($this->exactly(2)) ->method('outputLine') ->withConsecutive( - ['Documents in indice allowedTable were indexed.'], - ['Documents in indice anotherTable were indexed.'] + ['Documents in index allowedTable were indexed.'], + ['Documents in index anotherTable were indexed.'] ); $this->indexerFactory->expects($this->exactly(2)) ->method('getIndexer') @@ -203,7 +203,7 @@ class IndexCommandControllerTest extends AbstractUnitTestCase ->method('quit'); $this->subject->expects($this->once()) ->method('outputLine') - ->with('Documents in indice allowedTable were indexed.'); + ->with('Documents in index allowedTable were indexed.'); $this->indexerFactory->expects($this->once()) ->method('getIndexer') ->with('allowedTable') @@ -229,7 +229,7 @@ class IndexCommandControllerTest extends AbstractUnitTestCase ->method('outputLine') ->withConsecutive( ['No indexer found for: nonExisting.'], - ['Documents in indice allowedTable were indexed.'] + ['Documents in index allowedTable were indexed.'] ); $this->indexerFactory->expects($this->exactly(2)) ->method('getIndexer')