Adobe Experience Manager:如何处理“未检测到索引的查询”警报

描述 description

AEM as a Cloud Service可能会发送主题行为“Query Without Index Detected(未检测到索引)”的警报电子邮件。 当查询遍历整个JCR节点结构并可能导致性能下降时,会发生此警报。

示例
检测到没有索引的查询
选择[ jcr:path][ jcr:score]、*
[ sling:Mapping]作为
其中[ sling:internalRedirect]不为null
  且[ sling:match]不为null
  和isdescendantnode(a, '/etc/map/https')

环境:
AEM as a Cloud Service

解决方法 resolution

通过分析AEM日志,识别触发查询的程序。
根据程序的目的和受影响的节点数,请考虑以下方法之一:

步骤 1. 优化查询
步骤2. 调整索引配置
步骤3. 考虑可避免此类查询的替代实施(例如,枚举特定节点下的子元素)
步骤4. 如果进程快速完成并且不影响性能,则忽略该警报

有关优化查询和配置索引的更多信息,请参阅以下最佳实践文档:

[ 1]内容搜索和索引
https://experienceleague.adobe.com/zh-hans/docs/experience-manager-cloud-service/content/operations/indexing

[ 2]查询和索引最佳实践
https://experienceleague.adobe.com/zh-hans/docs/experience-manager-cloud-service/content/operations/query-and-indexing-best-practices

recommendation-more-help
3d58f420-19b5-47a0-a122-5c9dab55ec7f