fld = new Field(fldName,cswOutputSchema,Field.Store.YES,Field.Index.NOT_ANALYZED,Field.TermVector.NO);
document.add(fld);
}
String briefXslt = Val.chkStr(schema.getCswBriefXslt());
if (briefXslt.length() > 0) {
MetadataDocument mdDoc = new MetadataDocument();
String briefXml = mdDoc.transform(xml,briefXslt);
fldName = Storeables.FIELD_XML_BRIEF;
LOGGER.log(Level.FINER, "Appending field: {0}", fldName);
fld = new Field(fldName,briefXml,Field.Store.YES,Field.Index.NO,Field.TermVector.NO);
document.add(fld);
}
String summaryXslt = Val.chkStr(schema.getCswSummaryXslt());
if (summaryXslt.length() > 0) {
MetadataDocument mdDoc = new MetadataDocument();
String summaryXml = mdDoc.transform(xml,summaryXslt);
fldName = Storeables.FIELD_XML_SUMMARY;
LOGGER.log(Level.FINER, "Appending field: {0}", fldName);
fld = new Field(fldName,summaryXml,Field.Store.YES,Field.Index.NO,Field.TermVector.NO);
document.add(fld);
}