[
https://issues.apache.org/jira/browse/OAK-2272?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14213880#comment-14213880
]
Chetan Mehrotra edited comment on OAK-2272 at 11/17/14 5:35 AM:
----------------------------------------------------------------
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
* Property defintion node would in most case be set to the property name.
However in case a property name is not valid like a relative property, regular
exporession etc then the name would be specified with a {{name}} property and
config node name would not be used
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:lastModifiedBy",
"index": false
},
"prop0": {
"jcr:primaryType": "nt:unstructured",
"nodeScopeIndex": true,
"analyzed": true,
"useInExcerpt": true,
"isRegexp": true,
"name": ".*"
}
}
}
}
}
{code}
was (Author: chetanm):
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)