Details
-
Improvement
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
Description
Assuming that I have this code to read just the path of all search results:
List<String> foundPaths = new ArrayList<>(); QueryResult qr = query.execute(...); RowIterator iter = qr.getRows(); while (iter.hasNext) { Row r = iter.nextRow(); foundPaths.add(r.getPath()); }
We have found that r.getPath() still resolves a Tree, while r.getValue("jcr:path").toString() returns the same result, but without resolving a Tree.
I suggest that we change the implementation of getPath() (without parameters) to use the same approach; this would avoid quite some repository overhead.
//CC angela