<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:oak="http://jackrabbit.apache.org/oak/ns/1.0" xmlns:dam="http://www.day.com/dam/1.0" xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:nt="http://www.jcp.org/jcr/nt/1.0" xmlns:rep="internal"
jcr:mixinTypes="[rep:AccessControllable]"
jcr:primaryType="nt:unstructured">
<socialLucene/>
<workflowDataLucene/>
<slingeventJob/>
<jcrLanguage/>
<versionStoreIndex/>
<repMembers/>
<cqReportsLucene/>
<commerceLucene/>
<counter/>
<jhasLucene/>
<authorizables/>
<enablementResourceName/>
<externalPrincipalNames/>
<cmLucene/>
<cqProjectLucene/>
<acPrincipalName/>
<uuid/>
<damAssetLucene
jcr:primaryType="oak:QueryIndexDefinition"
async="[async,nrt]"
compatVersion="{Long}2"
evaluatePathRestrictions="{Boolean}true"
includedPaths="[/content/dam]"
reindex="{Boolean}false"
reindexCount="{Long}1"
type="lucene">
<aggregates jcr:primaryType="nt:unstructured">
<dam:Asset jcr:primaryType="nt:unstructured">
<include0
jcr:primaryType="nt:unstructured"
path="jcr:content"/>
<include1
jcr:primaryType="nt:unstructured"
path="jcr:content/metadata"/>
<include2
jcr:primaryType="nt:unstructured"
path="jcr:content/metadata/*"/>
<include3
jcr:primaryType="nt:unstructured"
path="jcr:content/renditions"/>
<include4
jcr:primaryType="nt:unstructured"
path="jcr:content/renditions/original"/>
<include5
jcr:primaryType="nt:unstructured"
path="jcr:content/renditions/original/jcr:content"/>
<include6
jcr:primaryType="nt:unstructured"
path="jcr:content/comments"/>
<include7
jcr:primaryType="nt:unstructured"
path="jcr:content/comments/*"/>
<include8
jcr:primaryType="nt:unstructured"
path="jcr:content/data/master"/>
<include9
jcr:primaryType="nt:unstructured"
path="jcr:content/usages"/>
</dam:Asset>
</aggregates>
<indexRules jcr:primaryType="nt:unstructured">
<dam:Asset jcr:primaryType="nt:unstructured">
<properties jcr:primaryType="nt:unstructured">
<cqTags
jcr:primaryType="nt:unstructured"
name="jcr:content/metadata/cq:tags"
nodeScopeIndex="{Boolean}true"
propertyIndex="{Boolean}true"
useInSpellcheck="{Boolean}true"
useInSuggest="{Boolean}true"/>
<dcFormat
jcr:primaryType="nt:unstructured"
analyzed="{Boolean}true"
name="jcr:content/metadata/dc:format"
propertyIndex="{Boolean}true"/>
<damStatus
jcr:primaryType="nt:unstructured"
name="jcr:content/metadata/dam:status"
propertyIndex="{Boolean}true"/>
<videoCodec
jcr:primaryType="nt:unstructured"
name="jcr:content/metadata/videoCodec"
propertyIndex="{Boolean}true"/>
<audioCodec
jcr:primaryType="nt:unstructured"
name="jcr:content/metadata/audioCodec"
propertyIndex="{Boolean}true"/>
<dcTitle
jcr:primaryType="nt:unstructured"
boost="{Double}2.0"
name="jcr:content/metadata/dc:title"
nodeScopeIndex="{Boolean}true"
ordered="{Boolean}true"
propertyIndex="{Boolean}true"
useInSpellcheck="{Boolean}true"
useInSuggest="{Boolean}true"/>
<dcDescription
jcr:primaryType="nt:unstructured"
name="jcr:content/metadata/dc:description"
nodeScopeIndex="{Boolean}true"
propertyIndex="{Boolean}true"
useInSpellcheck="{Boolean}true"
useInSuggest="{Boolean}true"/>
<xmpMMInstanceId
jcr:primaryType="nt:unstructured"
name="jcr:content/metadata/xmpMM:InstanceID"
propertyIndex="{Boolean}true"/>
<xmpMMDocumentId
jcr:primaryType="nt:unstructured"
name="jcr:content/metadata/xmpMM:DocumentID"
propertyIndex="{Boolean}true"/>
<damSha1
jcr:primaryType="nt:unstructured"
name="jcr:content/metadata/dam:sha1"
propertyIndex="{Boolean}true"/>
<hasValidMetadata
jcr:primaryType="nt:unstructured"
name="jcr:content/hasValidMetadata"
propertyIndex="{Boolean}true"
type="Boolean"/>
<refExpired
jcr:primaryType="nt:unstructured"
name="jcr:content/metadata/refExpired"
propertyIndex="{Boolean}true"
type="Boolean"/>
<videoBitrate
jcr:primaryType="nt:unstructured"
name="jcr:content/metadata/videoBitrate"
propertyIndex="{Boolean}true"/>
<audioBitrate
jcr:primaryType="nt:unstructured"
name="jcr:content/metadata/audioBitrate"
propertyIndex="{Boolean}true"/>
<usedBy
jcr:primaryType="nt:unstructured"
name="jcr:content/usages/usedBy"
propertyIndex="{Boolean}true"/>
<jcrLastModified
jcr:primaryType="nt:unstructured"
name="jcr:content/jcr:lastModified"
ordered="{Boolean}true"
propertyIndex="{Boolean}true"
type="Date"/>
<expirationDate
jcr:primaryType="nt:unstructured"
name="jcr:content/metadata/prism:expirationDate"
ordered="{Boolean}true"
propertyIndex="{Boolean}true"
type="Date"/>
<onTime
jcr:primaryType="nt:unstructured"
name="jcr:content/onTime"
ordered="{Boolean}true"
propertyIndex="{Boolean}true"
type="Date"/>
<offTime
jcr:primaryType="nt:unstructured"
name="jcr:content/offTime"
ordered="{Boolean}true"
propertyIndex="{Boolean}true"
type="Date"/>
<damSize
jcr:primaryType="nt:unstructured"
name="jcr:content/metadata/dam:size"
ordered="{Boolean}true"
propertyIndex="{Boolean}true"
type="Long"/>
<averageRating
jcr:primaryType="nt:unstructured"
name="jcr:content/averageRating"
ordered="{Boolean}true"
propertyIndex="{Boolean}true"
type="Double"/>
<tiffImageWidth
jcr:primaryType="nt:unstructured"
name="jcr:content/metadata/tiff:ImageWidth"
ordered="{Boolean}true"
propertyIndex="{Boolean}true"
type="Long"/>
<tiffImageLength
jcr:primaryType="nt:unstructured"
name="jcr:content/metadata/tiff:ImageLength"
ordered="{Boolean}true"
propertyIndex="{Boolean}true"
type="Long"/>
<score
jcr:primaryType="nt:unstructured"
name="jcr:content/usages/dam:score"
ordered="{Boolean}true"
propertyIndex="{Boolean}true"
type="Long"/>
<predictedTags
jcr:primaryType="nt:unstructured"
isRegexp="{Boolean}true"
name="jcr:content/metadata/predictedTags/*/name"/>
<predictedTagsConfidence
jcr:primaryType="nt:unstructured"
isRegexp="{Boolean}true"
name="jcr:content/metadata/predictedTags/*/confidence"/>
<damSearchElevate
jcr:primaryType="nt:unstructured"
analyzed="{Boolean}true"
boost="{Double}100.0"
name="jcr:content/metadata/dam:search_promote"
nodeScopeIndex="{Boolean}true"
propertyIndex="{Boolean}true"/>
<jcrTitle
jcr:primaryType="nt:unstructured"
boost="{Double}2.0"
name="jcr:content/jcr:title"
nodeScopeIndex="{Boolean}true"
propertyIndex="{Boolean}true"
useInSpellcheck="{Boolean}true"
useInSuggest="{Boolean}true"/>
<jcrDescription
jcr:primaryType="nt:unstructured"
name="jcr:content/jcr:description"
nodeScopeIndex="{Boolean}true"
propertyIndex="{Boolean}true"
useInSpellcheck="{Boolean}true"
useInSuggest="{Boolean}true"/>
<jcrCreated
jcr:primaryType="nt:unstructured"
name="jcr:created"
ordered="{Boolean}true"
propertyIndex="{Boolean}true"
type="Date"/>
<cqLastReplicated
jcr:primaryType="nt:unstructured"
name="jcr:content/cq:lastReplicated"
ordered="{Boolean}true"
propertyIndex="{Boolean}true"
type="Date"/>
<brandPortalReplicated
jcr:primaryType="nt:unstructured"
name="jcr:content/dam:portalReplicationDate"
ordered="{Boolean}true"
propertyIndex="{Boolean}true"
type="Date"/>
</properties>
</dam:Asset>
</indexRules>
</damAssetLucene>
<rep:policy/>
<cqPayloadPath/>
<nodetypeLucene/>
<nodetype/>
<ntBaseLucene/>
<reference/>
<principalName/>
<cqTagLucene/>
<lucene/>
<repTokenIndex/>
<externalId/>
<authorizableId/>
<cqPageLucene
jcr:primaryType="oak:QueryIndexDefinition"
async="[async,nrt]"
compatVersion="{Long}2"
evaluatePathRestrictions="{Boolean}true"
excludedPaths="[/var,/etc/replication,/etc/workflow/instances,/jcr:system]"
includedPaths="[/content/projectname]"
reindex="{Boolean}false"
reindexCount="{Long}1"
type="lucene">
<aggregates jcr:primaryType="nt:unstructured">
<cq:Page jcr:primaryType="nt:unstructured">
<include0
jcr:primaryType="nt:unstructured"
path="jcr:content"
relativeNode="{Boolean}true"/>
</cq:Page>
<nt:file jcr:primaryType="nt:unstructured">
<include0
jcr:primaryType="nt:unstructured"
path="jcr:content"/>
</nt:file>
<cq:PageContent jcr:primaryType="nt:unstructured">
<include0
jcr:primaryType="nt:unstructured"
path="*"/>
<include1
jcr:primaryType="nt:unstructured"
path="*/*"/>
<include2
jcr:primaryType="nt:unstructured"
path="*/*/*"/>
<include3
jcr:primaryType="nt:unstructured"
path="*/*/*/*"/>
<include4
jcr:primaryType="nt:unstructured"
path="*/*/*/*/*"/>
<include4
jcr:primaryType="nt:unstructured"
path="*/*/*/*/*"/>
</cq:PageContent>
</aggregates>
<indexRules jcr:primaryType="nt:unstructured">
<cq:Page jcr:primaryType="nt:unstructured">
<properties jcr:primaryType="nt:unstructured">
<cqLastModified
jcr:primaryType="nt:unstructured"
name="jcr:content/cq:lastModified"
ordered="{Boolean}true"
propertyIndex="{Boolean}true"
type="Date"/>
<jcrTitle
jcr:primaryType="nt:unstructured"
name="jcr:content/jcr:title"
nodeScopeIndex="{Boolean}true"
propertyIndex="{Boolean}true"
type="String"
useInSpellcheck="{Boolean}true"
useInSuggest="{Boolean}true"/>
<pageTitle
jcr:primaryType="nt:unstructured"
name="jcr:content/pageTitle"
nodeScopeIndex="{Boolean}true"
propertyIndex="{Boolean}true"
type="String"
useInSpellcheck="{Boolean}true"
useInSuggest="{Boolean}true"/>
<navTitle
jcr:primaryType="nt:unstructured"
name="jcr:content/navTitle"
nodeScopeIndex="{Boolean}true"
propertyIndex="{Boolean}true"
type="String"
useInSpellcheck="{Boolean}true"
useInSuggest="{Boolean}true"/>
<nodeName
jcr:primaryType="nt:unstructured"
name=":nodeName"
nodeScopeIndex="{Boolean}true"
propertyIndex="{Boolean}true"
type="String"
useInSpellcheck="{Boolean}true"
useInSuggest="{Boolean}true"/>
<cqLastRolledoutBy
jcr:primaryType="nt:unstructured"
name="jcr:content/cq:lastRolledoutBy"
propertyIndex="{Boolean}true"
type="String"/>
<location
jcr:primaryType="nt:unstructured"
name="jcr:content/location"
notNullCheckEnabled="{Boolean}true"
propertyIndex="{Boolean}true"
type="String"/>
</properties>
</cq:Page>
</indexRules>
</cqPageLucene>
</jcr:root>
There was another approach I tried as below which was combining both the indices into a common custom index and providing the included paths there. Is this a correct way to set up the index?
<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:oak="http://jackrabbit.apache.org/oak/ns/1.0" xmlns:dam="http://www.day.com/dam/1.0" xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:nt="http://www.jcp.org/jcr/nt/1.0" xmlns:rep="internal"
jcr:mixinTypes="[rep:AccessControllable]"
jcr:primaryType="nt:unstructured">
<socialLucene/>
<workflowDataLucene/>
<slingeventJob/>
<jcrLanguage/>
<versionStoreIndex/>
<repMembers/>
<cqReportsLucene/>
<commerceLucene/>
<counter/>
<jhasLucene
jcr:primaryType="oak:QueryIndexDefinition"
async="async"
compatVersion="{Long}2"
evaluatePathRestrictions="{Boolean}true"
excludedPaths="[/var,/etc,/jcr:system,/libs,/apps]"
includedPaths="[/content/projectname,/content/dam/projectname]"
reindex="{Boolean}false"
reindexCount="{Long}7"
type="lucene">
<aggregates jcr:primaryType="nt:unstructured">
<dam:Asset jcr:primaryType="nt:unstructured">
<include0
jcr:primaryType="nt:unstructured"
path="jcr:content"/>
<include1
jcr:primaryType="nt:unstructured"
path="jcr:content/metadata"/>
<include2
jcr:primaryType="nt:unstructured"
path="jcr:content/metadata/*"/>
<include3
jcr:primaryType="nt:unstructured"
path="jcr:content/renditions"/>
<include4
jcr:primaryType="nt:unstructured"
path="jcr:content/renditions/original"/>
<include5
jcr:primaryType="nt:unstructured"
path="jcr:content/renditions/original/jcr:content"/>
<include6
jcr:primaryType="nt:unstructured"
path="jcr:content/comments"/>
<include7
jcr:primaryType="nt:unstructured"
path="jcr:content/comments/*"/>
<include8
jcr:primaryType="nt:unstructured"
path="jcr:content/usages"/>
</dam:Asset>
<cq:Page jcr:primaryType="nt:unstructured">
<include0
jcr:primaryType="nt:unstructured"
path="jcr:content"
relativeNode="{Boolean}true"/>
</cq:Page>
<cq:PageContent jcr:primaryType="nt:unstructured">
<include0
jcr:primaryType="nt:unstructured"
path="*"
relativeNode="{Boolean}false"/>
<include1
jcr:primaryType="nt:unstructured"
path="*/*"
relativeNode="{Boolean}false"/>
<include2
jcr:primaryType="nt:unstructured"
path="*/*/*"
relativeNode="{Boolean}false"/>
<include3
jcr:primaryType="nt:unstructured"
path="*/*/*/*"
relativeNode="{Boolean}false"/>
<include4
jcr:primaryType="nt:unstructured"
path="*/*/*/*/*"
relativeNode="{Boolean}false"/>
<include5
jcr:primaryType="nt:unstructured"
path="*/*/*/*/*/*"
relativeNode="{Boolean}false"/>
</cq:PageContent>
</aggregates>
<indexRules jcr:primaryType="nt:unstructured">
<cq:Page jcr:primaryType="nt:unstructured">
<properties jcr:primaryType="nt:unstructured">
<cqLastModified
jcr:primaryType="nt:unstructured"
name="jcr:content/cq:lastModified"
ordered="{Boolean}true"
propertyIndex="{Boolean}true"
type="Date"/>
<jcrTitle
jcr:primaryType="nt:unstructured"
name="jcr:content/jcr:title"
nodeScopeIndex="{Boolean}true"
ordered="{Boolean}false"
propertyIndex="{Boolean}true"
type="String"
useInSpellcheck="{Boolean}true"
useInSuggest="{Boolean}true"/>
<pageTitle
jcr:primaryType="nt:unstructured"
name="jcr:content/pageTitle"
nodeScopeIndex="{Boolean}true"
ordered="{Boolean}false"
propertyIndex="{Boolean}true"
type="String"
useInSpellcheck="{Boolean}true"
useInSuggest="{Boolean}true"/>
<navTitle
jcr:primaryType="nt:unstructured"
name="jcr:content/navTitle"
nodeScopeIndex="{Boolean}true"
ordered="{Boolean}false"
propertyIndex="{Boolean}true"
type="String"
useInSpellcheck="{Boolean}true"
useInSuggest="{Boolean}true"/>
<nodeName
jcr:primaryType="nt:unstructured"
name=":nodeName"
nodeScopeIndex="{Boolean}true"
ordered="{Boolean}false"
propertyIndex="{Boolean}true"
type="String"
useInSpellcheck="{Boolean}true"
useInSuggest="{Boolean}true"/>
<cqLastRolledoutBy
jcr:primaryType="nt:unstructured"
name="jcr:content/cq:lastRolledoutBy"
ordered="{Boolean}false"
propertyIndex="{Boolean}true"
type="String"/>
<excludeinsearch
jcr:primaryType="nt:unstructured"
name="jcr:content/excludeInSearch"
nodeScopeIndex="{Boolean}true"
nullCheckEnabled="{Boolean}true"
ordered="{Boolean}false"
propertyIndex="{Boolean}true"
type="Boolean"/>
</properties>
</cq:Page>
<dam:Asset jcr:primaryType="nt:unstructured">
<properties jcr:primaryType="nt:unstructured">
<cqTags
jcr:primaryType="nt:unstructured"
name="jcr:content/metadata/cq:tags"
nodeScopeIndex="{Boolean}true"
propertyIndex="{Boolean}true"
useInSpellcheck="{Boolean}true"
useInSuggest="{Boolean}true"/>
<dcFormat
jcr:primaryType="nt:unstructured"
analyzed="{Boolean}true"
name="jcr:content/metadata/dc:format"
propertyIndex="{Boolean}true"/>
<damStatus
jcr:primaryType="nt:unstructured"
name="jcr:content/metadata/dam:status"
propertyIndex="{Boolean}true"/>
<videoCodec
jcr:primaryType="nt:unstructured"
name="jcr:content/metadata/videoCodec"
propertyIndex="{Boolean}true"/>
<audioCodec
jcr:primaryType="nt:unstructured"
name="jcr:content/metadata/audioCodec"
propertyIndex="{Boolean}true"/>
<dcTitle
jcr:primaryType="nt:unstructured"
boost="{Double}2.0"
name="jcr:content/metadata/dc:title"
nodeScopeIndex="{Boolean}true"
propertyIndex="{Boolean}true"
useInSpellcheck="{Boolean}true"
useInSuggest="{Boolean}true"/>
<dcDescription
jcr:primaryType="nt:unstructured"
name="jcr:content/metadata/dc:description"
nodeScopeIndex="{Boolean}true"
propertyIndex="{Boolean}true"
useInSpellcheck="{Boolean}true"
useInSuggest="{Boolean}true"/>
<xmpMMInstanceId
jcr:primaryType="nt:unstructured"
name="jcr:content/metadata/xmpMM:InstanceID"
propertyIndex="{Boolean}true"/>
<xmpMMDocumentId
jcr:primaryType="nt:unstructured"
name="jcr:content/metadata/xmpMM:DocumentID"
propertyIndex="{Boolean}true"/>
<damSha1
jcr:primaryType="nt:unstructured"
name="jcr:content/metadata/dam:sha1"
propertyIndex="{Boolean}true"/>
<hasValidMetadata
jcr:primaryType="nt:unstructured"
name="jcr:content/hasValidMetadata"
propertyIndex="{Boolean}true"
type="Boolean"/>
<videoBitrate
jcr:primaryType="nt:unstructured"
name="jcr:content/metadata/videoBitrate"
propertyIndex="{Boolean}true"/>
<audioBitRate
jcr:primaryType="nt:unstructured"
name="jcr:content/metadata/audioBitrate"
propertyIndex="{Boolean}true"/>
<usedBy
jcr:primaryType="nt:unstructured"
name="jcr:content/usages/usedBy"
propertyIndex="{Boolean}true"/>
<jcrLastModified
jcr:primaryType="nt:unstructured"
name="jcr:content/jcr:lastModified"
ordered="{Boolean}true"
propertyIndex="{Boolean}true"
type="Date"/>
<expirationDate
jcr:primaryType="nt:unstructured"
name="jcr:content/metadata/prism:expirationDate"
ordered="{Boolean}true"
propertyIndex="{Boolean}true"
type="Date"/>
<onTime
jcr:primaryType="nt:unstructured"
name="jcr:content/onTime"
ordered="{Boolean}true"
propertyIndex="{Boolean}true"
type="Date"/>
<offTime
jcr:primaryType="nt:unstructured"
name="jcr:content/offTime"
ordered="{Boolean}true"
propertyIndex="{Boolean}true"
type="Date"/>
<damSize
jcr:primaryType="nt:unstructured"
name="jcr:content/metadata/dam:size"
ordered="{Boolean}true"
propertyIndex="{Boolean}true"
type="Long"/>
<averageRating
jcr:primaryType="nt:unstructured"
name="jcr:content/averageRating"
ordered="{Boolean}true"
propertyIndex="{Boolean}true"
type="Double"/>
<tiffImageWidth
jcr:primaryType="nt:unstructured"
name="jcr:content/metadata/tiff:ImageWidth"
ordered="{Boolean}true"
propertyIndex="{Boolean}true"
type="Long"/>
<tiffImageLength
jcr:primaryType="nt:unstructured"
name="jcr:content/metadata/tiff:ImageLength"
ordered="{Boolean}true"
propertyIndex="{Boolean}true"
type="Long"/>
<score
jcr:primaryType="nt:unstructured"
name="jcr:content/usages/dam:score"
ordered="{Boolean}true"
propertyIndex="{Boolean}true"
type="Long"/>
<damRelativePath
jcr:primaryType="nt:unstructured"
analyzed="{Boolean}true"
name="jcr:content/dam:relativePath"
propertyIndex="{Boolean}true"/>
</properties>
</dam:Asset>
</indexRules>
</jhasLucene>
<authorizables/>
<enablementResourceName/>
<externalPrincipalNames/>
<cmLucene/>
<cqProjectLucene/>
<acPrincipalName/>
<uuid/>
<damAssetLucene/>
<rep:policy/>
<cqPayloadPath/>
<nodetypeLucene/>
<nodetype/>
<ntBaseLucene/>
<reference/>
<principalName/>
<cqTagLucene/>
<lucene/>
<repTokenIndex/>
<externalId/>
<authorizableId/>
<cqPageLucene/>
</jcr:root>