Let's get nodes:
NodeIterator it = result.getNodes();
if(it.hasNext())
{
Node findedNode = it.nextNode();
}
The NodeIterator will return "document2" and "document3".
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:title | jcr:description | jcr:path | jcr:score |
|---|---|---|---|
| Prison break | Run, Forest, run )) | /document2 | 4713 |
| Panopticum | It's imagine film | /document3 | 5150 |