You can use a de-indexing sweep to remove documents from the search index without
deleting them or rebuilding the entire index.
About this task
A de-indexing sweep is a batch operation that performs the following actions:
- De-indexes outdated documents or documents that no longer contain relevant content. These
documents remain stored in the repository and are accessible for other business processes,
workflows, or compliance purposes.
- Updates the
GenaiDateIndexed property to indicate when a document is no longer
indexed. This improves metadata accuracy and can ensure the Content Assistant uses only relevant, indexed
content when answering questions.
Procedure
- In the Administration Console for Content Platform Engine (ACCE), go to the object store
where you want to remove documents from the vector index.
- Create a de-indexing sweep action for the object store.
The sweep
action specifies a Java-based action handler that defines the logic for how documents are
de-indexed.
- In the object store navigation pane, right-click the folder and click
New Sweep action.
- Enter a name for the de-indexing sweep action, and click
Next.
You can name the de-indexing sweep action as Gen
AI vector De-indexing Request Job Sweep Action.
- Specify the Java class handler.
The following table
contains the Java class handler that you can specify based on your
Content Platform Engine (CPE) version:
Table 1. Java class handler
| CPE version |
Java class handler |
| CPE 5.7 and later |
com.filenet.engine.genai.sweep.VectorDeIndexingJobSweepHandler |
| CPE 5.6 and earlier |
com.filenet.genai.sweep.VectorDeIndexingJobSweepHandler |
- Finish the wizard.
- Create a de-indexing sweep job for the object store.
The sweep job uses the
sweep action that you created in
step 2 to
de-index documents based on specific filter criteria.
- In the object store navigation pane, select the folder and click New.
- Enter a name for the de-indexing sweep job, and click
Next.
You can name the de-indexing sweep job as Genai
Deindexing Job.
- Select your Target class.
You can select the
Document class or a subclass of the Document class.
- Specify the Filter expression for the de-indexing sweep
job.
You must use the filter expression "GenaiDateIndexed is not null" to identify
documents that are currently indexed within the object store. You can also include additional
conditions.
- Select the Sweep action for the de-indexing sweep
job.
You must select the de-indexing sweep action that you created in
step 2.
- Finish the wizard.