Expand my Community achievements bar.

July 31st AEM Gems Webinar: Elevate your AEM development to master the integration of private GitHub repositories within AEM Cloud Manager.
SOLVED

After created custom oak index for the DAM assets in AEM clooud. Asset search and asset side panel are not working

Avatar

Level 3

After created custom oak index for the DAM assets in AEM clooud. Asset search and asset side panel are not working

Found below errors in the logs

 

*WARN* [IP [NUmberID] GET /mnt/overlay/granite/ui/content/shell/omnisearch/searchresults.html HTTP/1.1] org.apache.jackrabbit.oak.query.QueryImpl Potentially improper use of index /oak:index/pathReference with queryFilterRegex (["']|^)/ to search for value 'rep:facet(jcr:content/metadata/dc:format)'
DateTime [aem-author] 

*WARN* [IP [NUmberID] GET /mnt/overlay/granite/ui/content/shell/omnisearch/searchresults.html HTTP/1.1] org.apache.jackrabbit.oak.query.QueryImpl Potentially improper use of index /oak:index/pathReference with queryFilterRegex (["']|^)/ to search for value 'rep:facet(jcr:content/metadata/dam:status)'

*WARN* [IP [NUmberID] GET /mnt/overlay/granite/ui/content/shell/omnisearch/searchresults.html HTTP/1.1] org.apache.jackrabbit.oak.query.QueryImpl Potentially improper use of index /oak:index/pathReference with queryFilterRegex (["']|^)/ to search for value '"imageName"'

 

Using below code to create a custom oak index

 

  <damAssetLucene-8-custom-1
            jcr:primaryType="oak:QueryIndexDefinition"
            async="[async,nrt]"
            compatVersion="{Long}2"
            evaluatePathRestrictions="{Boolean}true"
            includedPaths="/content/dam/damPath"
            reindex="{Boolean}false"
            reindexCount="{Long}3"
            seed="{Long}7895649870935705082"
            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/*"/>
            </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">
                    <format name="jcr:content/metadata/dc:format" propertyIndex="{Boolean}true" jcr:primaryType="nt:unstructured"/>
                </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>

 

 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hello @Nilesh_Mali 

 

This looks like an incomplete index.

 

https://experienceleague.adobe.com/docs/experience-manager-cloud-service/content/operations/indexing... 

If customizing an out-of-the-box index, for example damAssetLucene-8, please copy the latest out-of-the-box index definition from a Cloud Service environment using the CRX DE Package Manager (/crx/packmgr/) . Rename it to damAssetLucene-8-custom-1 (or higher), and add your customizations inside the XML file. This ensures that the required configurations are not being removed inadvertently. For example, the tika node under /oak:index/damAssetLucene-8/tika is required in the customized index of the cloud service. It doesn’t exist on the Cloud SDK.


Aanchal Sikka

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

Hello @Nilesh_Mali 

 

This looks like an incomplete index.

 

https://experienceleague.adobe.com/docs/experience-manager-cloud-service/content/operations/indexing... 

If customizing an out-of-the-box index, for example damAssetLucene-8, please copy the latest out-of-the-box index definition from a Cloud Service environment using the CRX DE Package Manager (/crx/packmgr/) . Rename it to damAssetLucene-8-custom-1 (or higher), and add your customizations inside the XML file. This ensures that the required configurations are not being removed inadvertently. For example, the tika node under /oak:index/damAssetLucene-8/tika is required in the customized index of the cloud service. It doesn’t exist on the Cloud SDK.


Aanchal Sikka