Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

Oak Index with AEM as Cloud service

kapant
Level 1
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
Bimmi_Soi
Correct answer by
Community Advisor
Community 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

3 Replies
Rajashankar
Level 4
Level 4

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

Arun_Patidar
Community Advisor
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...

Bimmi_Soi
Correct answer by
Community Advisor
Community 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