add document dele and rebuild faiss index
This commit is contained in:
@@ -10,6 +10,7 @@ class IngestJob
|
||||
{
|
||||
public const TYPE_DOCUMENT = 'DOCUMENT';
|
||||
public const TYPE_GLOBAL_REINDEX = 'GLOBAL_REINDEX';
|
||||
|
||||
/**
|
||||
* Special job type used when a DocumentVersion is activated.
|
||||
* Semantics: always re-ingest the selected version (even if it was previously INDEXED),
|
||||
@@ -17,6 +18,12 @@ class IngestJob
|
||||
*/
|
||||
public const TYPE_DOCUMENT_VERSION_ACTIVATE = 'DOCUMENT_VERSION_ACTIVATE';
|
||||
|
||||
/**
|
||||
* Job type used when a Document is hard-deleted from DB
|
||||
* and must be removed from index.ndjson + vector index.
|
||||
*/
|
||||
public const TYPE_DOCUMENT_DELETE = 'DOCUMENT_DELETE';
|
||||
|
||||
public const STATUS_QUEUED = 'QUEUED';
|
||||
public const STATUS_RUNNING = 'RUNNING';
|
||||
public const STATUS_COMPLETED = 'COMPLETED';
|
||||
|
||||
Reference in New Issue
Block a user