Index configurations are not working on AEMaaCS | Community
Skip to main content
May 2, 2023
Solved

Index configurations are not working on AEMaaCS

  • May 2, 2023
  • 2 replies
  • 1162 views

I'm trying to set up an index for AEMaaCS for faster querying using the QueryBuilder to find metadata properties across a collection of subdirectories of assets in the dam directory (e.g. some-asset.jpg/jcr:content/metadata). These flags are set by the user to see if they want to have a certain asset image uploaded and managed on an external system, or removed.


I been following this documentation and the errors I'm receiving are along the lines of:
02.05.2023 15:04:34.753 *ERROR* [OsgiInstallerImpl] org.apache.jackrabbit.vault.fs.impl.io.DocViewImporter Error during processing of /oak:index/sendToDownstreamIndex: javax.jcr.nodetype.NoSuchNodeTypeException: Node type oak0:QueryIndexDefinition does not exist

Here is the configurations I set up, it is possible I haven't configured it correctly:

ui.apps\src\main\content\META-INF\vault\filter.xml:

 

<?xml version="1.0" encoding="UTF-8"?> <workspaceFilter version="1.0"> <filter root="/oak:index/sendToInDownstreamIndex"/> <filter root="/oak:index/removeFromDownstreamIndex"/> </workspaceFilter>

 

 

 

 

ui.apps\src\main\content\jcr_root\_oak_index\.content.xml:

 

<?xml version="1.0" encoding="UTF-8"?> <jcr:root xmlns:oak="https://jackrabbit.apache.org/oak/ns/1.0" xmlns:dam="http://www.day.com/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"> <sendToDownstreamIndex jcr:primaryType="oak:QueryIndexDefinition" async="[async, nrt]" compatVersion="{Long}2" includedPaths="/content/dam" type="lucene"> <indexRules jcr:primaryType="nt:unstructured"> <nt:unstructured jcr:primaryType="nt:unstructured"> <properties jcr:primaryType="nt:unstructured"> <propertyName jcr:primaryType="nt:unstructured" name="companynamespace:sendToDownstream"/> </properties> </nt:unstructured> </indexRules> </sendToDownstreamIndex> <removeFromDownstreamIndex jcr:primaryType="oak:QueryIndexDefinition" async="[async, nrt]" compatVersion="{Long}2" includedPaths="/content/dam" type="lucene"> <indexRules jcr:primaryType="nt:unstructured"> <nt:unstructured jcr:primaryType="nt:unstructured"> <properties jcr:primaryType="nt:unstructured"> <propertyName jcr:primaryType="nt:unstructured" name="companynamespace:removeFromDownstream"/> </properties> </nt:unstructured> </indexRules> </removeFromDownstreamIndex> </jcr:root>

 

 

 

 

Can I get a little guidance on how to set up the indexes so that we are searching on the boolean metadata properties? 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Saravanan_Dharmaraj

@fjhancock please check the aggregate set up done here in this blog for properties in metadata node

http://www.aemcq5tutorials.com/tutorials/aem-oak-indexing-comprehensive-guide/ 

2 replies

Himanshu_Jain
Community Advisor
Community Advisor
May 3, 2023

Hi ,

Kindly refer the link https://experienceleague.adobe.com/docs/experience-manager-cloud-service/content/operations/indexing.html?lang=en

for creating custom index in AEMAACS.

 

Thanks

Himanshu

Himanshu Jain
Saravanan_Dharmaraj
Community Advisor
Saravanan_DharmarajCommunity AdvisorAccepted solution
Community Advisor
May 3, 2023

@fjhancock please check the aggregate set up done here in this blog for properties in metadata node

http://www.aemcq5tutorials.com/tutorials/aem-oak-indexing-comprehensive-guide/