Expand my Community achievements bar.

SOLVED

Oak Index with AEM as Cloud service

Avatar

Level 1

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'!"

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

Hi @kapant 

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?la...

Bimmi_Soi_0-1627893132827.png

Hope this helps!!

Thanks

View solution in original post

4 Replies

Avatar

Community Advisor

Hi @kapant 

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

Avatar

Community Advisor

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...



Arun Patidar

Avatar

Correct answer by
Employee Advisor

Hi @kapant 

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?la...

Bimmi_Soi_0-1627893132827.png

Hope this helps!!

Thanks

Avatar

Level 3

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-a...