fabriziofortino commented on code in PR #2283:
URL: https://github.com/apache/jackrabbit-oak/pull/2283#discussion_r2079850330


##########
oak-run/src/test/resources/org/apache/jackrabbit/oak/index/merge/merge-override-tags-type.json:
##########
@@ -0,0 +1,53 @@
+{
+  "build": {
+    "/oak:index/lucene-2": {
+      "jcr:primaryType": "nam:oak:QueryIndexDefinition",
+      ":version": 2,
+      "tags": ["similarity", "asset", "fragments"],
+      "type": "elasticsearch",
+      "async": "async",
+      "reindex": false,
+      "reindexCount": 1
+    }
+  },
+
+  "run": {
+    "/oak:index/lucene-1": {
+      "jcr:primaryType": "nam:oak:QueryIndexDefinition",
+      ":version": 2,
+      "tags": ["similarity", "asset"],
+      "type": "disabled",
+      "async": "async",
+      "reindex": false,
+      "reindexCount": 1
+    },
+    "/oak:index/lucene-1-custom-1": {
+      "jcr:primaryType": "nam:oak:QueryIndexDefinition",
+      ":version": 2,
+      "tags": "custom",
+      "type": "lucene",
+      "async": "async",
+      "reindex": false,
+      "reindexCount": 1
+    }
+  },
+
+  "expected": {
+    "/oak:index/lucene-2": {
+      "jcr:primaryType": "nam:oak:QueryIndexDefinition",
+      ":version": 2,
+      "tags": ["similarity", "asset", "fragments"],
+      "type": "elasticsearch",
+      "async": "async",
+      "reindex": false,
+      "reindexCount": 1
+    },
+    "/oak:index/lucene-2-custom-1": {
+      "jcr:primaryType": "nam:oak:QueryIndexDefinition",
+      "tags": ["asset", "custom", "fragments"],

Review Comment:
   I don't fully understand this:
   * lucene-1 -> `"tags": ["similarity", "asset"]`
   * lucene-1-custom-1 -> `"tags": "custom"` (tags have been completely 
overwritten)
   * lucene-2 -> ` "tags": ["similarity", "asset", "fragments"]` (fragments was 
added compared to the previous OOTB)
   * lucene-2-custom-1 -> "tags": ["asset", "custom", "fragments"] 
   
   Shouldn't the merged index have `"tags": ["custom", "fragments"]`?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: oak-dev-unsubscr...@jackrabbit.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to