Expand my Community achievements bar.

SOLVED

Lucene Index on jcr:title :

Avatar

Level 4

Created a Lucene index under : \jcr_root\_oak_index\.content.xml

<indexPage jcr:primaryType="oak:QueryIndexDefinition" includePropertyTypes ="[jcr:title,jcr:description]" type="lucene" async="async"/>

When package gets deployed ,I see a Warning message org.apache.jackrabbit.oak.plugins.index.lucene.IndexDefinition Unknown property type: jcr:title & org.apache.jackrabbit.oak.plugins.index.lucene.IndexDefinition Unknown property type: jcr:description

Any idea why this message for jcr:title ?

1 Accepted Solution

Avatar

Correct answer by
Level 9

Hello,

You mapping is not correct as error suggested

1. IncludePropertyTypes should be primary type of attribute like String, Binary etc... if expected more than a type then [String, Binary]

2. PropertyName (name[]) should be name of property

3. type should define which type of property is it like property, ordered, lucene etc... in your case it is property

Please correct it and hope it will work, please refer OOTB index definition.

 

Thanks,

Pawan

View solution in original post

1 Reply

Avatar

Correct answer by
Level 9

Hello,

You mapping is not correct as error suggested

1. IncludePropertyTypes should be primary type of attribute like String, Binary etc... if expected more than a type then [String, Binary]

2. PropertyName (name[]) should be name of property

3. type should define which type of property is it like property, ordered, lucene etc... in your case it is property

Please correct it and hope it will work, please refer OOTB index definition.

 

Thanks,

Pawan