for (Document s : result.getSnippets()) resultDoc1 = convertXMLDocumentToString(s); System.out.println(resultDoc1);
assertXMLEqual("Different metadata for handle", docStr, handleStr); Document snippet = matchResult.getSnippets()[0]; docStr = Common.testDocumentToString(snippet); handleStr = matchResult.getSnippetIterator(new StringHandle()).next().get();