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

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

c# - Chart control: Design messed Up after clearing and re-adding Y-Values -

ruby on rails - Apipie interferes with proper error codes -