Skip to content

Commit

Permalink
Fix for ReindexJob onlyClasses
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Penny committed Aug 3, 2022
1 parent 756d37d commit 04cf772
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Jobs/ReindexJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public function getTitle(): string
$title .= ' in index ' . implode(',', $this->getOnlyIndexes());
}

if (!$this->getOnlyClasses()) {
if ($this->getOnlyClasses()) {
$title .= ' of class ' . implode(',', $this->getOnlyClasses());
}

Expand Down
4 changes: 2 additions & 2 deletions src/Service/EnterpriseSearch/EnterpriseSearchService.php
Original file line number Diff line number Diff line change
Expand Up @@ -177,12 +177,12 @@ public function removeDocuments(array $items): array
*/
public function removeAllDocuments(string $indexName): int
{
$indexName = static::environmentizeIndex($indexName);
$cfg = $this->getConfiguration();
$client = $this->getClient();
$indexName = static::environmentizeIndex($indexName);
$numDeleted = 0;

$request = new ListDocuments(static::environmentizeIndex($indexName));
$request = new ListDocuments($indexName);
$request->setPageSize($cfg->getBatchSize());
$request->setCurrentPage(1);

Expand Down

0 comments on commit 04cf772

Please sign in to comment.