You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Chetan Mehrotra (JIRA)" <ji...@apache.org> on 2014/11/16 08:28:33 UTC
[jira] [Commented] (OAK-2272) Compatibility support for pre index
rule configuration
[ https://issues.apache.org/jira/browse/OAK-2272?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14213880#comment-14213880 ]
Chetan Mehrotra commented on OAK-2272:
--------------------------------------
Existing config would be converted to IndexRule based config
* {{includePropertyTypes}} - This would be specified at per rule level
* {{excludePropertyNames}} - For each excluded property a property definition would be created with {{index}} set to {{false}}
* For full text index which basicaly has an exclusion list a regEx property {{.*}} would be added in the end
For e.g. a full text config like
{code}
{
"jcr:primaryType": "oak:QueryIndexDefinition",
"includePropertyTypes": [
"String",
"Binary"
],
"type": "lucene",
"async": "async",
"excludePropertyNames": [
"jcr:createdBy",
"jcr:lastModifiedBy"
],
"reindex": false,
"reindexCount": 1
}
{code}
Would be transformed to
{code}
{
"jcr:primaryType": "oak:QueryIndexDefinition",
"type": "lucene",
"async": "async",
"reindex": false,
"reindexCount": 1,
"indexRules": {
"jcr:primaryType": "nt:unstructured",
"nt:base": {
"jcr:primaryType": "nt:unstructured",
"includePropertyTypes": [
"String",
"Binary"
],
"properties": {
"jcr:primaryType": "nt:unstructured",
"jcr:createdby": {
"jcr:primaryType": "nt:unstructured",
"name": "jcr:createdby",
"index": false
},
"jcr:lastModifiedBy": {
"jcr:primaryType": "nt:unstructured",
"name": "jcr:createdby",
"index": false
},
"prop0": {
"jcr:primaryType": "nt:unstructured",
"nodeScopeIndex": true,
"analyzed": true,
"useInExcerpt": true,
"isRegexp": true,
"name": ".*"
}
}
}
}
}
{code}
> Compatibility support for pre index rule configuration
> ------------------------------------------------------
>
> Key: OAK-2272
> URL: https://issues.apache.org/jira/browse/OAK-2272
> Project: Jackrabbit Oak
> Issue Type: Sub-task
> Components: oak-lucene
> Reporter: Chetan Mehrotra
> Assignee: Chetan Mehrotra
> Fix For: 1.2
>
>
> With change in index configuration as part of OAK-2261 existing index configuration would not work. For compatibility purpose existing configuration should be adapted to IndexRule based configuration
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)