Jackrabbit Running Queries against UUID

前端 未结 1 890
我在风中等你
我在风中等你 2021-01-21 23:18

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

相关标签:
1条回答
  • 2021-01-21 23:57

    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.

    0 讨论(0)
提交回复
热议问题