fix delete broken documents
This commit is contained in:
@@ -144,18 +144,6 @@ final readonly class IngestFlow
|
||||
$this->em->remove($document);
|
||||
$this->em->flush();
|
||||
|
||||
// Prüfen, ob noch INDEXED-Versionen existieren
|
||||
$indexedCount = $this->em
|
||||
->getRepository(DocumentVersion::class)
|
||||
->count([
|
||||
'ingestStatus' => DocumentVersion::INGEST_INDEXED,
|
||||
]);
|
||||
|
||||
if ($indexedCount === 0) {
|
||||
// Kein Reindex notwendig
|
||||
return;
|
||||
}
|
||||
|
||||
// 4️⃣ Reindex nur wenn sinnvoll
|
||||
$this->rebuildIndex(false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user