I am using Jackrabbit and I am trying to query for an existing node which has a UUID. My code is shown below. The problem is that UUID for referenceNode is of the form \"\'90be
The problem might be that the node is not saved yet. As written in the search documentation, "Node names and property values are indexed as soon as the data is saved or as soon as the transaction is committed."
In this case, I guess you could use Session.getNodeByIdentifier(String id)
instead of using a query. It should be much faster as well.