mirror of
https://github.com/Codappix/search_core.git
synced 2024-11-27 00:56:12 +01:00
TASK: rephrase indice to index.
This commit is contained in:
parent
43254c168c
commit
28a8dd1ab4
3 changed files with 11 additions and 11 deletions
|
@ -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.');
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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')
|
||||
|
|
Loading…
Reference in a new issue