This conversation has been locked due to inactivity. Please create a new post.
This conversation has been locked due to inactivity. Please create a new post.
I am trying to add a couple of fields to experienceFragmentsIndex-3 .. I did all of the instructions and didn't even change the code I got from dev server on cloud:
Solved! Go to Solution.
Views
Replies
Total Likes
I would use the below for .content.xml and experienceFragmentsIndex-3-custom-1 would be a simple directory.
<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:oak="http://jackrabbit.apache.org/oak/ns/1.0"
xmlns:sling="http://sling.apache.org/jcr/sling/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"
jcr:primaryType="oak:QueryIndexDefinition"
async="[async,nrt]"
compatVersion="{Long}2"
evaluatePathRestrictions="{Boolean}true"
includedPaths="[/content/experience-fragments]"
queryPaths="[/content/experience-fragments]"
reindex="{Boolean}false"
reindexCount="{Long}1"
seed="{Long}7872558779417643971"
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>
<cq:PageContent jcr:primaryType="nt:unstructured">
<include0
jcr:primaryType="nt:unstructured"
path="*"/>
<include1
jcr:primaryType="nt:unstructured"
path="*/*"/>
</cq:PageContent>
</aggregates>
<indexRules jcr:primaryType="nt:unstructured">
<cq:Page
jcr:primaryType="nt:unstructured"
indexNodeName="{Boolean}true">
<properties jcr:primaryType="nt:unstructured">
<resourceType
jcr:primaryType="nt:unstructured"
name="jcr:content/sling:resourceType"
propertyIndex="{Boolean}true"
type="String"/>
<cqXfVariantType
jcr:primaryType="nt:unstructured"
name="jcr:content/cq:xfVariantType"
propertyIndex="{Boolean}true"
type="String"/>
<cqTags
jcr:primaryType="nt:unstructured"
name="jcr:content/cq:tags"
propertyIndex="{Boolean}true"
type="String"/>
<cqLastModified
jcr:primaryType="nt:unstructured"
name="jcr:content/cq:lastModified"
ordered="{Boolean}true"
propertyIndex="{Boolean}true"
type="Date"/>
<jcrCreated
jcr:primaryType="nt:unstructured"
name="jcr:created"
ordered="{Boolean}true"
propertyIndex="{Boolean}true"
type="Date"/>
</properties>
</cq:Page>
</indexRules>
</jcr:root>
Hi @Sean-McK,
I'm guessing you're missing the cq namespace tag in your file.
Do you see the tag namespace for cq at the jcr:root node in experienceFragmentsIndex-3-custom-1/.content.xml file? If you don't see it at the jcr:root node, you can add the below to fix the build issue.
xmlns:cq="http://www.day.com/jcr/cq/1.0"
jcr:root node in the .content.xml file would look something like this
<jcr:root xmlns:oak="http://jackrabbit.apache.org/oak/ns/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" jcr:primaryType="oak:QueryIndexDefinition" .....>
Thanks,
Lokesh
Hey Lokesh,
That doesn't work....I get even more errors like:
"jackrabbit-filter: Node '/oak:index/experienceFragmentsIndex-3-custom-1/aggregates/cq:Page' is not contained in any of the filter rules"
and
"jackrabbit-filter: Node '/oak:index/experienceFragmentsIndex-3-custom-1/aggregates/cq:Page/include0' is not contained in any of the filter rules"
<experienceFragmentsIndex-3-custom-1
jcr:primaryType="oak:QueryIndexDefinition"
async="[async,nrt]"
compatVersion="{Long}2"
evaluatePathRestrictions="{Boolean}true"
includedPaths="[/content/experience-fragments]"
queryPaths="[/content/experience-fragments]"
reindex="{Boolean}false"
reindexCount="{Long}1"
seed="{Long}7872558779417643971"
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>
<cq:PageContent jcr:primaryType="nt:unstructured">
<include0
jcr:primaryType="nt:unstructured"
path="*"/>
<include1
jcr:primaryType="nt:unstructured"
path="*/*"/>
</cq:PageContent>
</aggregates>
<indexRules jcr:primaryType="nt:unstructured">
<cq:Page
jcr:primaryType="nt:unstructured"
indexNodeName="{Boolean}true">
<properties jcr:primaryType="nt:unstructured">
<resourceType
jcr:primaryType="nt:unstructured"
name="jcr:content/sling:resourceType"
propertyIndex="{Boolean}true"
type="String"/>
<cqXfVariantType
jcr:primaryType="nt:unstructured"
name="jcr:content/cq:xfVariantType"
propertyIndex="{Boolean}true"
type="String"/>
<cqTags
jcr:primaryType="nt:unstructured"
name="jcr:content/cq:tags"
propertyIndex="{Boolean}true"
type="String"/>
<cqLastModified
jcr:primaryType="nt:unstructured"
name="jcr:content/cq:lastModified"
ordered="{Boolean}true"
propertyIndex="{Boolean}true"
type="Date"/>
<jcrCreated
jcr:primaryType="nt:unstructured"
name="jcr:created"
ordered="{Boolean}true"
propertyIndex="{Boolean}true"
type="Date"/>
</properties>
</cq:Page>
</indexRules>
</experienceFragmentsIndex-3-custom-1>
I would use the below for .content.xml and experienceFragmentsIndex-3-custom-1 would be a simple directory.
<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:oak="http://jackrabbit.apache.org/oak/ns/1.0"
xmlns:sling="http://sling.apache.org/jcr/sling/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"
jcr:primaryType="oak:QueryIndexDefinition"
async="[async,nrt]"
compatVersion="{Long}2"
evaluatePathRestrictions="{Boolean}true"
includedPaths="[/content/experience-fragments]"
queryPaths="[/content/experience-fragments]"
reindex="{Boolean}false"
reindexCount="{Long}1"
seed="{Long}7872558779417643971"
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>
<cq:PageContent jcr:primaryType="nt:unstructured">
<include0
jcr:primaryType="nt:unstructured"
path="*"/>
<include1
jcr:primaryType="nt:unstructured"
path="*/*"/>
</cq:PageContent>
</aggregates>
<indexRules jcr:primaryType="nt:unstructured">
<cq:Page
jcr:primaryType="nt:unstructured"
indexNodeName="{Boolean}true">
<properties jcr:primaryType="nt:unstructured">
<resourceType
jcr:primaryType="nt:unstructured"
name="jcr:content/sling:resourceType"
propertyIndex="{Boolean}true"
type="String"/>
<cqXfVariantType
jcr:primaryType="nt:unstructured"
name="jcr:content/cq:xfVariantType"
propertyIndex="{Boolean}true"
type="String"/>
<cqTags
jcr:primaryType="nt:unstructured"
name="jcr:content/cq:tags"
propertyIndex="{Boolean}true"
type="String"/>
<cqLastModified
jcr:primaryType="nt:unstructured"
name="jcr:content/cq:lastModified"
ordered="{Boolean}true"
propertyIndex="{Boolean}true"
type="Date"/>
<jcrCreated
jcr:primaryType="nt:unstructured"
name="jcr:created"
ordered="{Boolean}true"
propertyIndex="{Boolean}true"
type="Date"/>
</properties>
</cq:Page>
</indexRules>
</jcr:root>
This was the final one that I got to work:
<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:oak="http://jackrabbit.apache.org/oak/ns/1.0"
xmlns:sling="http://sling.apache.org/jcr/sling/1.0"
xmlns:cq="http://www.day.com/jcr/cq/1.0"
xmlns:dam="http://www.day.com/jcr/dam/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:primaryType="nt:unstructured"
jcr:mixinTypes="[rep:AccessControllable]">
<damAssetLucene-8-custom-1
jcr:primaryType="oak:QueryIndexDefinition"
async="[async,nrt]"
compatVersion="{Long}2"
evaluatePathRestrictions="{Boolean}true"
includedPaths="[/content/dam]"
maxFieldLength="{Long}100000"
reindexCount="{Long}1"
tags="[visualSimilaritySearch]"
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"/>
<include10
jcr:primaryType="nt:unstructured"
path="jcr:content/renditions/cqdam.text.txt/jcr:content"/>
<include11
jcr:primaryType="nt:unstructured"
path="jcr:content/metadata/shopTheLookSkus"/>
<include12
jcr:primaryType="nt:unstructured"
path="jcr:content/metadata/dam:scene7Name"/>
</dam:Asset>
</aggregates>
<facets
jcr:primaryType="nt:unstructured"
secure="statistical"
topChildren="100"/>
<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"
facets="{Boolean}true"
name="jcr:content/metadata/dc:format"
propertyIndex="{Boolean}true"/>
<damStatus
jcr:primaryType="nt:unstructured"
facets="{Boolean}true"
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"
similarityTags="{Boolean}true"/>
<predictedTagsConfidence
jcr:primaryType="nt:unstructured"
isRegexp="{Boolean}true"
name="jcr:content/metadata/predictedTags/*/confidence"/>
<predictedTagsDynamicBoost
jcr:primaryType="nt:unstructured"
dynamicBoost="{Boolean}true"
isRegexp="{Boolean}true"
name="jcr:content/metadata/predictedTags/.*"
propertyIndex="{Boolean}true"/>
<imageFeatures
jcr:primaryType="nt:unstructured"
name="jcr:content/metadata/imageFeatures/haystack0"
nodeScopeIndex="{Boolean}true"
propertyIndex="{Boolean}true"
useInSimilarity="{Boolean}true"/>
<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"/>
<lastReplicationAction
jcr:primaryType="nt:unstructured"
name="jcr:content/cq:lastReplicationAction"
propertyIndex="{Boolean}true"/>
<brandPortalReplicationAction
jcr:primaryType="nt:unstructured"
name="jcr:content/dam:portalReplicationAction"
propertyIndex="{Boolean}true"/>
<scene7Path
jcr:primaryType="nt:unstructured"
name="jcr:content/dam:scene7SanitizedPath"
propertyIndex="{Boolean}true"/>
<scene7PublishStatus
jcr:primaryType="nt:unstructured"
name="jcr:content/metadata/dam:scene7FileStatus"
propertyIndex="{Boolean}true"/>
<scene7PublishDate
jcr:primaryType="nt:unstructured"
name="jcr:content/metadata/dam:scene7PublishTimeStamp"
ordered="{Boolean}true"
propertyIndex="{Boolean}true"
type="Date"/>
<cqDrivelock
jcr:primaryType="nt:unstructured"
name="jcr:content/cq:drivelock"
ordered="{Boolean}true"
propertyIndex="{Boolean}true"
sync="{Boolean}true"/>
<nodeName
jcr:primaryType="nt:unstructured"
name=":nodeName"
nodeScopeIndex="{Boolean}true"
useInSuggest="{Boolean}true"/>
<contentFragment
jcr:primaryType="nt:unstructured"
name="jcr:content/contentFragment"
propertyIndex="{Boolean}true"
type="Boolean"/>
<nodeNameLowerCase
jcr:primaryType="nt:unstructured"
function="fn:lower-case(fn:name())"
ordered="{Boolean}true"
propertyIndex="{Boolean}true"/>
<dcTitleLowerCase
jcr:primaryType="nt:unstructured"
function="fn:lower-case(jcr:first(jcr:content/metadata/@dc:title))"
ordered="{Boolean}true"
propertyIndex="{Boolean}true"/>
<colorTags
jcr:primaryType="nt:unstructured"
isRegexp="{Boolean}true"
name="jcr:content/metadata/dam:colorDistribution/*/name"
propertyIndex="{Boolean}true"/>
<cqDiscardState
jcr:primaryType="nt:unstructured"
name="jcr:content/cq:discardState"
propertyIndex="{Boolean}true"/>
</properties>
</dam:Asset>
</indexRules>
<tika jcr:primaryType="nt:unstructured">
<config.xml jcr:primaryType="nt:file" >
<jcr:content jcr:primaryType="nt:unstructured" />
</config.xml>
</tika>
</damAssetLucene-8-custom-1>
<acPrincipalName/>
<appsLibsLucene/>
<assetPrefixNodename-1/>
<authorizableId/>
<authorizables/>
<cmLucene-2/>
<commerceLucene/>
<counter/>
<cqPageLucene/>
<cqPayloadPath/>
<cqProjectLucene/>
<cqReportsLucene/>
<cqTagLucene-2/>
<cqTagLucene-3/>
<damAssetLucene-7/>
<damAssetStateIndex-3/>
<damCollectionLucene-4/>
<experienceFragmentsIndex-3/>
<externalId/>
<externalPrincipalNames/>
<formsTemplateLucene/>
<fragments-7/>
<graphqlConfig-2/>
<internalVerificationLucene/>
<jcrLanguage/>
<lucene-2/>
<nodetype/>
<nodetypeLucene/>
<ntBaseLucene-2/>
<ntFileFolderLucene/>
<ntFolderDamLucene-4/>
<ntHierarchyLucene/>
<packageLucene/>
<pathReference/>
<principalName/>
<reference/>
<rep:policy/>
<repAccessControllableDamLucene-1/>
<repMembers/>
<repTokenIndex/>
<screensContentJcrPrimaryType/>
<screensSmartSyncJcrPrimaryType/>
<slingQuickSites-1/>
<slingSitemaps-1/>
<slingeventJob/>
<socialLucene/>
<uuid/>
<versionStoreIndex/>
<workflowDataLucene-2/>
</jcr:root>