Lucene Index on jcr:title : | Community
Skip to main content
Level 4
October 17, 2016
Solved

Lucene Index on jcr:title :

  • October 17, 2016
  • 1 reply
  • 1294 views

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 ?

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 Pawan-Gupta

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

1 reply

Pawan-Gupta
Pawan-GuptaAccepted solution
Level 8
October 18, 2016

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