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
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Oak Index with AEM as Cloud service

srimupparaju1
Level 1
Level 1

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.

Jackrabbit FileVault Package Plugin used as below in the all POM

 

<groupId>org.apache.jackrabbit</groupId>
<artifactId>filevault-package-maven-plugin</artifactId>
<extensions>true</extensions>
<version>1.1.6</version>

 

we are getting the below error

 

srimupparaju1_0-1635258796863.png

 

error log:

Register node types from tccl:aem.cnd
[INFO] Using 9 validators for package of type APPLICATION: jackrabbit-accesscontrol (org.apache.jackrabbit.vault.validation.spi.impl.AccessControlValidator), jackrabbit-filter (org.apache.jackrabbit.vault.validation.spi.impl.AdvancedFilterValidator), jackrabbit-properties (org.apache.jackrabbit.vault.validation.spi.impl.AdvancedPropertiesValidator), jackrabbit-docviewparser (org.apache.jackrabbit.vault.validation.spi.impl.DocumentViewParserValidator), jackrabbit-dependencies (org.apache.jackrabbit.vault.validation.spi.impl.DependencyValidator), jackrabbit-emptyelements (org.apache.jackrabbit.vault.validation.spi.impl.EmptyElementsValidator), jackrabbit-mergelimitations (org.apache.jackrabbit.vault.validation.spi.impl.MergeLimitationsValidator), jackrabbit-packagetype (org.apache.jackrabbit.vault.validation.spi.impl.PackageTypeValidator), jackrabbit-nodetypes (org.apache.jackrabbit.vault.validation.spi.impl.nodetype.NodeTypeValidator)
[ERROR] ValidationViolation: "jackrabbit-packagetype: Package of type 'APPLICATION' is not supposed to contain includes/excludes below any of its filters!", filePath=META-INF\vault\filter.xml

1 Accepted Solution
davidjgonzalezzzz
Correct answer by
Level 6
Level 6

There error is: 

 

[ERROR] ValidationViolation: "jackrabbit-packagetype: Package of type 'APPLICATION' is not supposed to contain includes/excludes below any of its filters!", filePath=META-INF\vault\filter.xml

 

So i think you need to explicitly name your index definition node to include, so far example:

 

<filter root="/oak:index/cqPageLucene-3-custom-4"/>

 

Rather than using the include/excludes under the filter (which allow your wild cards) - try naming your indexes explicitly.

View solution in original post

1 Reply
davidjgonzalezzzz
Correct answer by
Level 6
Level 6

There error is: 

 

[ERROR] ValidationViolation: "jackrabbit-packagetype: Package of type 'APPLICATION' is not supposed to contain includes/excludes below any of its filters!", filePath=META-INF\vault\filter.xml

 

So i think you need to explicitly name your index definition node to include, so far example:

 

<filter root="/oak:index/cqPageLucene-3-custom-4"/>

 

Rather than using the include/excludes under the filter (which allow your wild cards) - try naming your indexes explicitly.

View solution in original post