JCR SQL2: Exact keyword search for multivalued properties
I’m trying to build a SQL2 Query where I want to search a String value within a multivalued property.
e.g. something similar to this —> SELECT * FROM [nt:unstructured] AS node WHERE ISDESCENDANTNODE(node,’/content/a/b/c’) AND CONTAINS(node.[MULTI_PROP], ‘hello’);
Here MULTI_PROP is a String[ ] property of the target node and it should have exact same string value i.e. “hello”
But there are other nodes in same descendent level where the property values are “hello world” / “hello again” etc. So, these nodes are also getting considered as CONTAINS has been used.
So, while I tried couple of other ways, it did nt work out with any of those :
i. Tried using LIKE operator —> 0 result
ii. Tried using with double quotations —> 0 result
ii. Tried IN operator —> 0 result
So, any help would be great on this topic. As I don’t want further filtration/iteration logic to be applied in service and want to retrieve the filtered result only through query.












