protected void init(Item parentItem) { fullTextStreams = new LinkedList<>(); if (parentItem != null) { sourceInfo = parentItem.getHandle(); //extracted full text is always extracted as plain text contentType = "text/plain"; buildFullTextList(parentItem); } }
public FullTextContentStreams(Context context, Item parentItem) throws SQLException { this.context = context; init(parentItem); }
writeDocument(doc, new FullTextContentStreams(context, item)); log.info("Wrote Item: " + handle + " to Index"); } catch (RuntimeException e) {
if (streams != null && !streams.isEmpty()) { ContentStreamUpdateRequest req = new ContentStreamUpdateRequest("/update/extract"); req.addContentStream(streams);