Index all CMIS documents

The example project runs through all available folders and invokes the method buildIndexable for each document. An indexable object is then created with the desired values.


private Indexable buildIndexable(Document cmisDocument) throws IOException {
Indexable indexable = new Indexable();
	indexable.setKey(cmisDocument.getId());
	indexable.setTitle(cmisDocument.getName());
	indexable.setDate(cmisDocument.getCreationDate());
	indexable.setModificationDate(cmisDocument.getLastModificationDate());

	byte[] content = getContentBytes(cmisDocument.getContentStream());
	indexable.setContent(content);
	String extension = getExtension(cmisDocument);
	indexable.setExtension(extension);
	
	return indexable;
}


The search in the Mindbreeze Web Client now delivers all the demo user’s documents in Fabasoft Folio Cloud.