一、准备Technical账号(已具备)
账号通过OAuth的方式进行登录,同时具备访问/bin/querybuilder.json的权限(fusion通过这里去检索页面信息),如https://author-p44761-e210970.adobeaemcloud.com/bin/querybuilder.json?path=/content/aem-cms-2-0/emea/gb/public/en&type=cq:Page&p.limit=10

二、在Fusion配置AEM数据源
1、提供AEM Admin的地址,输入AEM URL 比如:https://author-p44761-e196277.adobeaemcloud.com(用于访问AEM管理界面的URL)以及用于对QueryBuilder JSON Servlet的访问进行身份验证的AEM用户名和密码
其中basic auth实际只有本地才能登录,看了目前介绍已经支持AEM的OAuth账号登录:

2、在CRXDE UI中,选择要抓取的路径,路径可以添加多个,并且可以配置要从索引中包含和排除的内容(Java正则表达式)
3、录入要抓取的类型(jcr:primaryType),比如页面就是cq:Page,DAM就是dam:Asset,同样也可以配置要从索引中包含和排除的内容属性(Java正则表达式)
4、保存即可,整体字段说明大致如下:
AEM URL | Required. This is the URL used to access the AEM Admin UI. |
AEM Username | Required. The user should have sufficient permissions to read content paths and access Users/Group APIs in case Security Trimming is needed. |
AEM Password | Required. |
Page Batch Size | Number of documents to fetch per page request. A higher value can increase crawling speed but also increases memory usage. |
Thread wait (ms) | Number of milliseconds to wait between fetch requests. This property can be used to throttle a crawl if necessary. |
Paths to search | Required. |
Paths that should not be fetched | Java regex for paths that should not be fetched. |
AEM Types | Required. AEM document type |
Attachment types | File extensions to index. |
Content Property Include Regexes | A list of regex strings of content properties to include in indexed documents. Example: |
Content Property Exlude Regexes | A list of regex strings of content properties to exclude from indexed documents. Example: |
Enable Security Trimming | Enable this setting for content filtering of results based on the user’s id passed in during query. |
Group Mappings | AEM user groups mapped to indexed values in the security trimming field which are used to filter content based on user id passed in query. |
Cache Expire Time (m) | Specifies how long a query is cached in minutes. |
参考资料
https://legacydoc.lucidworks.com/how-to/ht8hle/configure-aem-v-2-connector
下一篇
Helix总结