lucene - add non-indexable document to alfresco using java -
I succeded to access content with java to enter alfresco
FileInfo fI = serviceRegistry.getFileFolderService () .create (fileInfo.getNodeRef (), "test.docx", contentModel.TYPE_CONTENT); ServiceRegistry.getFileFolderService () GetWriter (fI.getNodeRef ()). PutContent (new file ("C: \\ ...... \\ test.docx"));
But my purpose is to add content that is not indexable, so it does not appear in any Lucene result, is it possible?
Actually it is easy to add property to node
NodeService.setProperty (res.getNodeRef), ContentModel .PROP_IS_INDEXED, "wrong");
Comments
Post a Comment