You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by dk...@apache.org on 2018/05/10 05:48:38 UTC
[sling-whiteboard] 03/04: adding oak indexes for CMS node types
This is an automated email from the ASF dual-hosted git repository.
dklco pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-whiteboard.git
commit 9bd260b5a5b006fe9595df814a0bcd890004050e
Author: Dan Klco <dk...@apache.org>
AuthorDate: Wed May 9 23:47:38 2018 -0600
adding oak indexes for CMS node types
---
.../jcr_root/oak%3Aindex/ntBaseLucene.json | 40 +++++++++++
.../resources/jcr_root/oak%3Aindex/published.json | 9 +++
.../jcr_root/oak%3Aindex/slingAssetLucene.json | 57 ++++++++++++++++
.../jcr_root/oak%3Aindex/slingPageLucene.json | 78 ++++++++++++++++++++++
.../oak%3Aindex/slingResourceSuperType.json | 9 +++
.../jcr_root/oak%3Aindex/slingTaxonomy.json | 31 +++++++++
.../jcr_root/oak%3Aindex/slingTemplate.json | 9 +++
7 files changed, 233 insertions(+)
diff --git a/cms/ui/src/main/resources/jcr_root/oak%3Aindex/ntBaseLucene.json b/cms/ui/src/main/resources/jcr_root/oak%3Aindex/ntBaseLucene.json
new file mode 100644
index 0000000..98d81b0
--- /dev/null
+++ b/cms/ui/src/main/resources/jcr_root/oak%3Aindex/ntBaseLucene.json
@@ -0,0 +1,40 @@
+{
+ "jcr:primaryType": "oak:QueryIndexDefinition",
+ "compatVersion": 2,
+ "indexPath": "/oak:index/ntBaseLucene",
+ "name": "ntBaseLucene",
+ "type": "lucene",
+ "async": [
+ "async",
+ "nrt"
+ ],
+ "evaluatePathRestrictions": false,
+ "excludedPaths": [
+ "/jcr:system"
+ ],
+ "reindex": false,
+ "reindexCount": 1,
+ "indexRules": {
+ "jcr:primaryType": "nt:unstructured",
+ "nt:base": {
+ "jcr:primaryType": "nt:unstructured",
+ "properties": {
+ "jcr:primaryType": "nt:unstructured",
+ "cqTags": {
+ "jcr:primaryType": "nt:unstructured",
+ "ordered": false,
+ "propertyIndex": true,
+ "name": "sling:taxonomy",
+ "type": "String"
+ },
+ "slingResource": {
+ "jcr:primaryType": "nt:unstructured",
+ "ordered": false,
+ "propertyIndex": true,
+ "name": "sling:resource",
+ "type": "String"
+ }
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/cms/ui/src/main/resources/jcr_root/oak%3Aindex/published.json b/cms/ui/src/main/resources/jcr_root/oak%3Aindex/published.json
new file mode 100644
index 0000000..2b27fad
--- /dev/null
+++ b/cms/ui/src/main/resources/jcr_root/oak%3Aindex/published.json
@@ -0,0 +1,9 @@
+{
+ "jcr:primaryType": "oak:QueryIndexDefinition",
+ "propertyNames": [
+ "published"
+ ],
+ "type": "property",
+ "reindex": false,
+ "reindexCount": 1
+}
\ No newline at end of file
diff --git a/cms/ui/src/main/resources/jcr_root/oak%3Aindex/slingAssetLucene.json b/cms/ui/src/main/resources/jcr_root/oak%3Aindex/slingAssetLucene.json
new file mode 100644
index 0000000..f810082
--- /dev/null
+++ b/cms/ui/src/main/resources/jcr_root/oak%3Aindex/slingAssetLucene.json
@@ -0,0 +1,57 @@
+{
+ "jcr:primaryType": "oak:QueryIndexDefinition",
+ "compatVersion": 2,
+ "type": "lucene",
+ "async": "async",
+ "evaluatePathRestrictions": true,
+ "reindex": false,
+ "reindexCount": 1,
+ "aggregates": {
+ "jcr:primaryType": "nt:unstructured",
+ "sling:Asset": {
+ "jcr:primaryType": "nt:unstructured",
+ "include0": {
+ "jcr:primaryType": "nt:unstructured",
+ "path": "jcr:content"
+ },
+ "include1": {
+ "jcr:primaryType": "nt:unstructured",
+ "path": "jcr:content/*"
+ }
+ }
+ },
+ "indexRules": {
+ "jcr:primaryType": "nt:unstructured",
+ "sling:Asset": {
+ "jcr:primaryType": "nt:unstructured",
+ "properties": {
+ "jcr:primaryType": "nt:unstructured",
+ "slingTaxonomy": {
+ "jcr:primaryType": "nt:unstructured",
+ "nodeScopeIndex": true,
+ "useInSuggest": true,
+ "propertyIndex": true,
+ "useInSpellcheck": true,
+ "name": "jcr:content/sling:taxonomy"
+ },
+ "jcrTitle": {
+ "jcr:primaryType": "nt:unstructured",
+ "nodeScopeIndex": true,
+ "useInSuggest": true,
+ "propertyIndex": true,
+ "useInSpellcheck": true,
+ "name": "jcr:content/jcr:title",
+ "boost": 2
+ },
+ "jcrDescription": {
+ "jcr:primaryType": "nt:unstructured",
+ "nodeScopeIndex": true,
+ "useInSuggest": true,
+ "propertyIndex": true,
+ "useInSpellcheck": true,
+ "name": "jcr:content/jcr:description"
+ }
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/cms/ui/src/main/resources/jcr_root/oak%3Aindex/slingPageLucene.json b/cms/ui/src/main/resources/jcr_root/oak%3Aindex/slingPageLucene.json
new file mode 100644
index 0000000..079ecab
--- /dev/null
+++ b/cms/ui/src/main/resources/jcr_root/oak%3Aindex/slingPageLucene.json
@@ -0,0 +1,78 @@
+{
+ "jcr:primaryType": "oak:QueryIndexDefinition",
+ "compatVersion": 2,
+ "type": "lucene",
+ "async": [
+ "async",
+ "nrt"
+ ],
+ "evaluatePathRestrictions": true,
+ "excludedPaths": [
+ "/var",
+ "/jcr:system"
+ ],
+ "reindex": false,
+ "reindexCount": 1,
+ "aggregates": {
+ "jcr:primaryType": "nt:unstructured",
+ "sling:Page": {
+ "jcr:primaryType": "nt:unstructured",
+ "include0": {
+ "jcr:primaryType": "nt:unstructured",
+ "relativeNode": true,
+ "path": "jcr:content"
+ }
+ },
+ "nt:file": {
+ "jcr:primaryType": "nt:unstructured",
+ "include0": {
+ "jcr:primaryType": "nt:unstructured",
+ "path": "jcr:content"
+ }
+ },
+ "nt:unstructured": {
+ "jcr:primaryType": "nt:unstructured",
+ "include0": {
+ "jcr:primaryType": "nt:unstructured",
+ "path": "*"
+ },
+ "include1": {
+ "jcr:primaryType": "nt:unstructured",
+ "path": "*/*"
+ },
+ "include2": {
+ "jcr:primaryType": "nt:unstructured",
+ "path": "*/*/*"
+ },
+ "include3": {
+ "jcr:primaryType": "nt:unstructured",
+ "path": "*/*/*/*"
+ }
+ }
+ },
+ "indexRules": {
+ "jcr:primaryType": "nt:unstructured",
+ "sling:Page": {
+ "jcr:primaryType": "nt:unstructured",
+ "properties": {
+ "jcr:primaryType": "nt:unstructured",
+ "cqLastModified": {
+ "jcr:primaryType": "nt:unstructured",
+ "ordered": true,
+ "propertyIndex": true,
+ "name": "jcr:content/sling:lastModified",
+ "type": "Date"
+ },
+ "jcrTitle": {
+ "jcr:primaryType": "nt:unstructured",
+ "nodeScopeIndex": true,
+ "useInSuggest": true,
+ "propertyIndex": true,
+ "useInSpellcheck": true,
+ "name": "jcr:content/jcr:title",
+ "type": "String"
+ }
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/cms/ui/src/main/resources/jcr_root/oak%3Aindex/slingResourceSuperType.json b/cms/ui/src/main/resources/jcr_root/oak%3Aindex/slingResourceSuperType.json
new file mode 100644
index 0000000..a9a17fe
--- /dev/null
+++ b/cms/ui/src/main/resources/jcr_root/oak%3Aindex/slingResourceSuperType.json
@@ -0,0 +1,9 @@
+{
+ "jcr:primaryType": "oak:QueryIndexDefinition",
+ "propertyNames": [
+ "sling:resourceSuperType"
+ ],
+ "type": "property",
+ "reindex": false,
+ "reindexCount": 1
+}
\ No newline at end of file
diff --git a/cms/ui/src/main/resources/jcr_root/oak%3Aindex/slingTaxonomy.json b/cms/ui/src/main/resources/jcr_root/oak%3Aindex/slingTaxonomy.json
new file mode 100644
index 0000000..3d16a41
--- /dev/null
+++ b/cms/ui/src/main/resources/jcr_root/oak%3Aindex/slingTaxonomy.json
@@ -0,0 +1,31 @@
+{
+ "jcr:primaryType": "oak:QueryIndexDefinition",
+ "compatVersion": 2,
+ "type": "lucene",
+ "async": [
+ "async",
+ "nrt"
+ ],
+ "excludedPaths": [
+ "/var",
+ "/jcr:system"
+ ],
+ "reindex": false,
+ "reindexCount": 1,
+ "indexRules": {
+ "jcr:primaryType": "nt:unstructured",
+ "sling:Taxonomy": {
+ "jcr:primaryType": "nt:unstructured",
+ "properties": {
+ "jcr:primaryType": "nt:unstructured",
+ "jcrTitle": {
+ "jcr:primaryType": "nt:unstructured",
+ "propertyIndex": true,
+ "analyzed": true,
+ "name": "jcr:title",
+ "type": "String"
+ }
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/cms/ui/src/main/resources/jcr_root/oak%3Aindex/slingTemplate.json b/cms/ui/src/main/resources/jcr_root/oak%3Aindex/slingTemplate.json
new file mode 100644
index 0000000..8f5876d
--- /dev/null
+++ b/cms/ui/src/main/resources/jcr_root/oak%3Aindex/slingTemplate.json
@@ -0,0 +1,9 @@
+{
+ "jcr:primaryType": "oak:QueryIndexDefinition",
+ "propertyNames": [
+ "sling:template"
+ ],
+ "type": "property",
+ "reindex": false,
+ "reindexCount": 1
+}
\ No newline at end of file
--
To stop receiving notification emails like this one, please contact
dklco@apache.org.