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 -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -