XRAY: Xray retention period / Why is my repository not fully indexed?

XRAY: Xray retention period / Why is my repository not fully indexed?

AuthorFullName__c
Reut Cohen
articleNumber
000005714
ft:sourceType
Salesforce
FirstPublishedDate
2023-05-09T13:50:46Z
lastModifiedDate
2023-05-09
VersionNumber
4

Retention period specifies how long the artifacts scan data will be kept by Xray; Prior to the retention policy, that became available on Xray 3.41.4, the retention period would be automatically set to forever.

Currently, If no retention period is set, 90 days is the default period for repositories and 15 days for builds. 
Once the retention policy expires, all Xray data related to the repository/build will be deleted from the Xray database. More information regarding this topic can be found here

In many cases, we can see repositories that are not getting fully indexed. This is usually caused due to an expired retention period for some artifacts inside the repository.