Oak Index with AEM as Cloud service | Community
Skip to main content
Adobe Employee
July 30, 2021
Solved

Oak Index with AEM as Cloud service

  • July 30, 2021
  • 4 replies
  • 6455 views

Hello,

 

I am trying to create a custom Index.

I have placed Index under apps/_oak_index.

 

I am using below filter

<filter root="/oak:index">
   <include pattern="/oak:index/cqPageLucene-custom-.*(/.*)?"/>
</filter>

 

I have set allowIndexDefinitions as true.

 

But while building getting below error

[ERROR] ValidationViolation: "jackrabbit-packagetype: Package of type 'APPLICATION' is not supposed to contain Oak index definitions but has 'allowIndexDefinitions' set to true.", filePath=META-INF\vault\properties.xml
[ERROR] ValidationViolation: "jackrabbit-accesscontrol: Found no access control list, but there is supposed to be one contained as the property 'acHandling' is set to 'MERGE'!"

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 BimmiSo

Hi @kamal2 

As per the Adobe documentation, please try to degrade the  Jackrabbit Filevault Maven Package Plugin version from 1.1.0 to 1.0. 4 and then try

PFB the link:

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

Hope this helps!!

Thanks

4 replies

RajaShankar
Community Advisor
Community Advisor
July 30, 2021

Hi @kamal2 

Could you please try with below steps:

  1. Download a Custom Index Definition.
  2. Copy .content.xml to ui.content project in the Cloud Manager Git Project. The project path should look like: \ui.content\src\main\content\jcr_root_oak_index.
  3. Modify the filter.xml to include the _oak_index folder
  4. Add <allowIndexDefinitions>true</allowIndexDefinitions> to filevault-package-maven-plugin plugin configuration in Parent pom.xml.
  5. Do a local maven build and deploy.

As mentioned in https://medium.com/adobetech/using-search-and-indexing-in-aem-as-a-cloud-service-cda0e10c944b

 

Regards,

Rajashankar

arunpatidar
Community Advisor
Community Advisor
July 30, 2021

in AEMaaCS, Everything else in the repository, /content/conf/var/etc/oak:index/system/tmp, etc. are all mutable areas, meaning they can be changed at runtime.so should be part of ui.content package.

More info https://experienceleague.adobe.com/docs/experience-manager-cloud-service/implementing/developing/aem-project-content-package-structure.html?lang=en#mutable-vs-immutable

Arun Patidar
BimmiSoAdobe EmployeeAccepted solution
Adobe Employee
August 2, 2021

Hi @kamal2 

As per the Adobe documentation, please try to degrade the  Jackrabbit Filevault Maven Package Plugin version from 1.1.0 to 1.0. 4 and then try

PFB the link:

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

Hope this helps!!

Thanks

Level 3
December 1, 2021

To follow up on this, you can actually resolve this issue without having to downgrade to version 1.0.4 of the filevault plugin. 

I've created an article here with more details: https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/deploying-oak-indexes-to-aem-as-a-cloud-service/m-p/433224