The following error occurs on the Jobs tab during incremental indexing in SAS Visual Investigator:
SANDDeleteByQueryException: The data could not be deleted.
When you execute the incremental index job, the LinkReferenceDeleter generates and queries for each documentId × relationshipName combination. LinkReferenceDeleter then batches the combination into OR queries of up to maxQueryConditionLimit (default 512) before sending to SAND/OpenSearch as a _delete_by_query. However, OpenSearch rejects these complex queries with search_phase_execution_exception: all shards failed because the query exceeds its internal complexity limits.
To circumvent this issue, adjust the maxQueryConditionLimit configuration setting by completing the following steps:
Note: You might need to readjust the setting to locate the correct value. Start with 256.