Lucene 默认的CQ5搜索配置是否不正确?
我需要为我的应用程序优化CQ5 lucene索引配置 我想提供一个自定义搜索配置,但我很难真正理解默认配置 资料来源:) 第一个问题: 默认配置中使用的“包括”标记是否正确 例如: 默认配置使用标记“include”为nt:file聚合包含属性“jcr:content/jcr:lastModified”Lucene 默认的CQ5搜索配置是否不正确?,lucene,aem,jackrabbit,Lucene,Aem,Jackrabbit,我需要为我的应用程序优化CQ5 lucene索引配置 我想提供一个自定义搜索配置,但我很难真正理解默认配置 资料来源:) 第一个问题: 默认配置中使用的“包括”标记是否正确 例如: 默认配置使用标记“include”为nt:file聚合包含属性“jcr:content/jcr:lastModified” <aggregate primaryType="nt:file"> <include>jcr:content</include> <in
<aggregate primaryType="nt:file">
<include>jcr:content</include>
<include>jcr:content/jcr:lastModified</include>
</aggregate>
jcr:内容
jcr:content/jcr:lastModified
我只能假设这无关紧要,但我找不到任何来源来证实这一点
第二个问题:对于节点类型“cq:PageContent”,将聚合四个级别的所有属性
<aggregate primaryType="cq:PageContent">
<include>*</include>
<include>*/*</include>
<include>*/*/*</include>
<include>*/*/*/*</include>
</aggregate>
*
*/*
*/*/*
*/*/*/*
我假设由于聚合,所有属性都被索引,包含在这4个级别中
<>或者我必须考虑NodeType NT:BASE的索引规则,它基本上只包含与模式“.:./.P/>匹配的属性”。
分析提供者
分析钳
...
.*:.*
致以最诚挚的问候Adobe CQ5支持确认默认配置不正确
为了使agegate正常工作,“include property”-标记必须包含属性
因此,默认搜索配置(或至少文档)不正确)
<aggregate primaryType="cq:PageContent">
<include>*</include>
<include>*/*</include>
<include>*/*/*</include>
<include>*/*/*/*</include>
</aggregate>
<index-rule nodeType="nt:base">
<property nodeScopeIndex="false">analyticsProvider</property>
<property nodeScopeIndex="false">analyticsSnippet</property>
...
<property isRegexp="true">.*:.*</property>
</index-rule>