mirror of
https://github.com/Codappix/search_core.git
synced 2024-11-23 11:36:11 +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) {
|
$this->executeForIdentifier($identifiers, function (IndexerInterface $indexer) {
|
||||||
$indexer->indexAllDocuments();
|
$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) {
|
$this->executeForIdentifier($identifiers, function (IndexerInterface $indexer) {
|
||||||
$indexer->deleteDocuments();
|
$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
|
This will delete the index for the table ``pages``. Deletion means removing all
|
||||||
documents from the index.
|
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.
|
a single argument. Spaces before and after commas are ignored.
|
||||||
|
|
||||||
.. _usage_manual_flush:
|
.. _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
|
This will flush the index for the table ``pages``. Flush means removing the index
|
||||||
from backend.
|
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.
|
a single argument. Spaces before and after commas are ignored.
|
||||||
|
|
||||||
.. _usage_auto_indexing:
|
.. _usage_auto_indexing:
|
||||||
|
|
|
@ -85,7 +85,7 @@ class IndexCommandControllerTest extends AbstractUnitTestCase
|
||||||
->method('quit');
|
->method('quit');
|
||||||
$this->subject->expects($this->once())
|
$this->subject->expects($this->once())
|
||||||
->method('outputLine')
|
->method('outputLine')
|
||||||
->with('Documents in indice allowedTable were indexed.');
|
->with('Documents in index allowedTable were indexed.');
|
||||||
$this->indexerFactory->expects($this->once())
|
$this->indexerFactory->expects($this->once())
|
||||||
->method('getIndexer')
|
->method('getIndexer')
|
||||||
->with('allowedTable')
|
->with('allowedTable')
|
||||||
|
@ -107,7 +107,7 @@ class IndexCommandControllerTest extends AbstractUnitTestCase
|
||||||
->willReturn('allowedTable');
|
->willReturn('allowedTable');
|
||||||
$this->subject->expects($this->once())
|
$this->subject->expects($this->once())
|
||||||
->method('outputLine')
|
->method('outputLine')
|
||||||
->with('Documents in indice allowedTable were deleted.');
|
->with('Documents in index allowedTable were deleted.');
|
||||||
$this->indexerFactory->expects($this->once())
|
$this->indexerFactory->expects($this->once())
|
||||||
->method('getIndexer')
|
->method('getIndexer')
|
||||||
->with('allowedTable')
|
->with('allowedTable')
|
||||||
|
@ -131,7 +131,7 @@ class IndexCommandControllerTest extends AbstractUnitTestCase
|
||||||
->willReturn('pages');
|
->willReturn('pages');
|
||||||
$this->subject->expects($this->once())
|
$this->subject->expects($this->once())
|
||||||
->method('outputLine')
|
->method('outputLine')
|
||||||
->with('Indice pages was flushed.');
|
->with('Index pages was deleted.');
|
||||||
$this->indexerFactory->expects($this->once())
|
$this->indexerFactory->expects($this->once())
|
||||||
->method('getIndexer')
|
->method('getIndexer')
|
||||||
->with('pages')
|
->with('pages')
|
||||||
|
@ -177,8 +177,8 @@ class IndexCommandControllerTest extends AbstractUnitTestCase
|
||||||
$this->subject->expects($this->exactly(2))
|
$this->subject->expects($this->exactly(2))
|
||||||
->method('outputLine')
|
->method('outputLine')
|
||||||
->withConsecutive(
|
->withConsecutive(
|
||||||
['Documents in indice allowedTable were indexed.'],
|
['Documents in index allowedTable were indexed.'],
|
||||||
['Documents in indice anotherTable were indexed.']
|
['Documents in index anotherTable were indexed.']
|
||||||
);
|
);
|
||||||
$this->indexerFactory->expects($this->exactly(2))
|
$this->indexerFactory->expects($this->exactly(2))
|
||||||
->method('getIndexer')
|
->method('getIndexer')
|
||||||
|
@ -203,7 +203,7 @@ class IndexCommandControllerTest extends AbstractUnitTestCase
|
||||||
->method('quit');
|
->method('quit');
|
||||||
$this->subject->expects($this->once())
|
$this->subject->expects($this->once())
|
||||||
->method('outputLine')
|
->method('outputLine')
|
||||||
->with('Documents in indice allowedTable were indexed.');
|
->with('Documents in index allowedTable were indexed.');
|
||||||
$this->indexerFactory->expects($this->once())
|
$this->indexerFactory->expects($this->once())
|
||||||
->method('getIndexer')
|
->method('getIndexer')
|
||||||
->with('allowedTable')
|
->with('allowedTable')
|
||||||
|
@ -229,7 +229,7 @@ class IndexCommandControllerTest extends AbstractUnitTestCase
|
||||||
->method('outputLine')
|
->method('outputLine')
|
||||||
->withConsecutive(
|
->withConsecutive(
|
||||||
['No indexer found for: nonExisting.'],
|
['No indexer found for: nonExisting.'],
|
||||||
['Documents in indice allowedTable were indexed.']
|
['Documents in index allowedTable were indexed.']
|
||||||
);
|
);
|
||||||
$this->indexerFactory->expects($this->exactly(2))
|
$this->indexerFactory->expects($this->exactly(2))
|
||||||
->method('getIndexer')
|
->method('getIndexer')
|
||||||
|
|
Loading…
Reference in a new issue