Let's get nodes:
NodeIterator it = result.getNodes();
if(it.hasNext())
{
Node findedNode = it.nextNode();
}
NodeIterator will return "/baseFile/jcr:content","/target1/jcr:content" and "/target3/jcr:content".
As you see the base node are also in result set.
We can also get a table:
String[] columnNames = result.getColumnNames();
RowIterator rit = result.getRows();
while (rit.hasNext())
{
Row row = rit.nextRow();
// get values of the row
Value[] values = row.getValues();
}
The table content is
| jcr:path | ... | jcr:score |
|---|---|---|
| /baseFile/jcr:content | ... | 2674 |
| /target1/jcr:content | ... | 2674 |
| /target3/jcr:content | ... | 2674 |