Description
I've experienced this behavior und the following circumstances:
- Query with an index tag option ("option (index tag x)")
- The index the tag has an regex property with REGEX_ALL_PROPS
What happens is that the resulting query to lucene, which can be inspected in [1] is:
+:ancestors:/test +:indexTag:x
So the :indexTag will be added to the Lucene index as a property, because :indexTag matches the regex, which can be inspected in [2]
I've added a failing unit test for this in [0].
I've also tried to come around with a custom regex which excludes every node which starts with a colon ( regex: "^[^:\\/][^\\/]*$"). This leads to another problem where the index won't be selected (because the potential propery ":indexTag" does not matches the regex) and the query will traverse.
Attachments
Issue Links
- relates to
-
OAK-9587 Add an attribute to enforce a strict index tag check ("selectionPolicy")
- Closed
- links to