Skip to content
Permalink
Browse files
OAK-9717 - adding missing test files
  • Loading branch information
klcodanr committed Mar 9, 2022
1 parent b223d5b commit f89f233ed9616b8e2235ff7caaba5d9e7eeb4afb
Showing 5 changed files with 1,110 additions and 0 deletions.
@@ -0,0 +1,19 @@
{
"run": {
"/oak:index/lucene": { "a": 1, "b": 10, "x": 1, "z": 2 },
"/oak:index/lucene-custom-1": { "a": 2, "b": 10, "c": 1, "x": 1 }
},
"build": {
"/oak:index/lucene-2": { "a": 1, "b": 11, "d": 100, "z": 2 }
},
"expected": {
"/oak:index/lucene-2": { "a": 1, "b": 11, "d": 100, "z": 2 },
"/oak:index/lucene-2-custom-1": {
"a": 2,
"b": 11,
"c": 1,
"d": 100,
"merges": ["/oak:index/lucene-2", "/oak:index/lucene-custom-1"]
}
}
}
@@ -0,0 +1,273 @@
{
"build": {
"/oak:index/lucene-2": {
"jcr:primaryType": "nam:oak:QueryIndexDefinition",
":version": 2,
"includePropertyTypes": ["String", "Binary"],
"type": "lucene",
"async": "async",
"reindex": false,
"reindexCount": 1,
"indexRules": {
"jcr:primaryType": "nam:nt:unstructured",
"nt:base": {
"jcr:primaryType": "nam:nt:unstructured",
"includePropertyTypes": ["String", "Binary"],
"properties": {
"jcr:primaryType": "nam:nt:unstructured",
"sling:alias": {
"jcr:primaryType": "nam:nt:unstructured",
"name": "sling:alias",
"index": false
},
"jcr:lastmodifiedby": {
"jcr:primaryType": "nam:nt:unstructured",
"name": "str:jcr:lastmodifiedby",
"index": false
},
"sling:resourcetype": {
"jcr:primaryType": "nam:nt:unstructured",
"name": "sling:resourcetype",
"index": false
},
"jcr:createdby": {
"jcr:primaryType": "nam:nt:unstructured",
"name": "str:jcr:createdby",
"index": false
},
"sling:vanitypath": {
"jcr:primaryType": "nam:nt:unstructured",
"name": "sling:vanitypath",
"index": false
},
"prop0": {
"jcr:primaryType": "nam:nt:unstructured",
"nodeScopeIndex": true,
"propertyIndex": false,
"analyzed": true,
"useInExcerpt": true,
"isRegexp": true,
"name": "^[^\\/]*$"
}
}
}
}
}
},

"run": {
"/oak:index/lucene-1": {
"jcr:primaryType": "nam:oak:QueryIndexDefinition",
":version": 2,
"includePropertyTypes": ["String", "Binary"],
"type": "lucene",
"async": "async",
"reindex": false,
"reindexCount": 1,
"indexRules": {
"jcr:primaryType": "nam:nt:unstructured",
"nt:base": {
"jcr:primaryType": "nam:nt:unstructured",
"includePropertyTypes": ["String", "Binary"],
"properties": {
"jcr:primaryType": "nam:nt:unstructured",
"sling:alias": {
"jcr:primaryType": "nam:nt:unstructured",
"name": "sling:alias",
"index": false
},
"jcr:lastmodifiedby": {
"jcr:primaryType": "nam:nt:unstructured",
"name": "str:jcr:lastmodifiedby",
"index": false
},
"sling:resourcetype": {
"jcr:primaryType": "nam:nt:unstructured",
"name": "sling:resourcetype",
"index": false
},
"jcr:createdby": {
"jcr:primaryType": "nam:nt:unstructured",
"name": "str:jcr:createdby",
"index": false
},
"prop0": {
"jcr:primaryType": "nam:nt:unstructured",
"nodeScopeIndex": true,
"propertyIndex": false,
"analyzed": true,
"useInExcerpt": true,
"isRegexp": true,
"name": "^[^\\/]*$"
}
}
}
}
},
"/oak:index/lucene-1-custom-1": {
"jcr:primaryType": "nam:oak:QueryIndexDefinition",
":version": 2,
"includePropertyTypes": ["String", "Binary"],
"type": "lucene",
"async": "async",
"reindex": false,
"reindexCount": 1,
"indexRules": {
"jcr:primaryType": "nam:nt:unstructured",
"nt:base": {
"jcr:primaryType": "nam:nt:unstructured",
"includePropertyTypes": ["String", "Binary"],
"properties": {
"jcr:primaryType": "nam:nt:unstructured",
"sling:alias": {
"jcr:primaryType": "nam:nt:unstructured",
"name": "sling:alias",
"index": false
},
"jcr:lastmodifiedby": {
"jcr:primaryType": "nam:nt:unstructured",
"name": "str:jcr:lastmodifiedby",
"index": false
},
"sling:resourcetype": {
"jcr:primaryType": "nam:nt:unstructured",
"name": "sling:resourcetype",
"index": false
},
"jcr:createdby": {
"jcr:primaryType": "nam:nt:unstructured",
"name": "str:jcr:createdby",
"index": false
},
"myco:myProperty": {
"jcr:primaryType": "nam:nt:unstructured",
"name": "myco:myProperty",
"index": false
},
"prop0": {
"jcr:primaryType": "nam:nt:unstructured",
"nodeScopeIndex": true,
"propertyIndex": false,
"analyzed": true,
"useInExcerpt": true,
"isRegexp": true,
"name": "^[^\\/]*$"
}
}
}
}
}
},

"expected": {
"/oak:index/lucene-2": {
"jcr:primaryType": "nam:oak:QueryIndexDefinition",
":version": 2,
"includePropertyTypes": ["String", "Binary"],
"type": "lucene",
"async": "async",
"reindex": false,
"reindexCount": 1,
"indexRules": {
"jcr:primaryType": "nam:nt:unstructured",
"nt:base": {
"jcr:primaryType": "nam:nt:unstructured",
"includePropertyTypes": ["String", "Binary"],
"properties": {
"jcr:primaryType": "nam:nt:unstructured",
"sling:alias": {
"jcr:primaryType": "nam:nt:unstructured",
"name": "sling:alias",
"index": false
},
"jcr:lastmodifiedby": {
"jcr:primaryType": "nam:nt:unstructured",
"name": "str:jcr:lastmodifiedby",
"index": false
},
"sling:resourcetype": {
"jcr:primaryType": "nam:nt:unstructured",
"name": "sling:resourcetype",
"index": false
},
"jcr:createdby": {
"jcr:primaryType": "nam:nt:unstructured",
"name": "str:jcr:createdby",
"index": false
},
"sling:vanitypath": {
"jcr:primaryType": "nam:nt:unstructured",
"name": "sling:vanitypath",
"index": false
},
"prop0": {
"jcr:primaryType": "nam:nt:unstructured",
"nodeScopeIndex": true,
"propertyIndex": false,
"analyzed": true,
"useInExcerpt": true,
"isRegexp": true,
"name": "^[^\\/]*$"
}
}
}
}
},
"/oak:index/lucene-2-custom-1": {
"jcr:primaryType": "nam:oak:QueryIndexDefinition",
"includePropertyTypes": ["String", "Binary"],
"type": "lucene",
"async": "async",
"merges": ["/oak:index/lucene-2", "/oak:index/lucene-1-custom-1"],
"indexRules": {
"jcr:primaryType": "nam:nt:unstructured",
"nt:base": {
"jcr:primaryType": "nam:nt:unstructured",
"includePropertyTypes": ["String", "Binary"],
"properties": {
"jcr:primaryType": "nam:nt:unstructured",
"sling:alias": {
"jcr:primaryType": "nam:nt:unstructured",
"name": "sling:alias",
"index": false
},
"jcr:lastmodifiedby": {
"jcr:primaryType": "nam:nt:unstructured",
"name": "str:jcr:lastmodifiedby",
"index": false
},
"sling:resourcetype": {
"jcr:primaryType": "nam:nt:unstructured",
"name": "sling:resourcetype",
"index": false
},
"jcr:createdby": {
"jcr:primaryType": "nam:nt:unstructured",
"name": "str:jcr:createdby",
"index": false
},
"sling:vanitypath": {
"jcr:primaryType": "nam:nt:unstructured",
"name": "sling:vanitypath",
"index": false
},
"prop0": {
"jcr:primaryType": "nam:nt:unstructured",
"nodeScopeIndex": true,
"propertyIndex": false,
"analyzed": true,
"useInExcerpt": true,
"isRegexp": true,
"name": "^[^\\/]*$"
},
"myco:myProperty": {
"jcr:primaryType": "nam:nt:unstructured",
"name": "myco:myProperty",
"index": false
}
}
}
}
}
}
}

0 comments on commit f89f233

Please sign in to comment.