Hi Tim, To my knowledge ContentFactory and InsertContent do not support document properties. I recommend migrating to the newAdhocQuery function, passing the document and properties as external parameters..
Kind regards, Geert Drs. G.P.H. Josten Consultant <http://www.daidalos.nl/> Daidalos BV Source of Innovation Hoekeindsehof 1-4 2665 JZ Bleiswijk Tel.: +31 (0) 10 850 1200 Fax: +31 (0) 10 850 1199 www.daidalos.nl<http://www.daidalos.nl/> KvK 27164984 De informatie - verzonden in of met dit emailbericht - is afkomstig van Daidalos BV en is uitsluitend bestemd voor de geadresseerde. Indien u dit bericht onbedoeld hebt ontvangen, verzoeken wij u het te verwijderen. Aan dit bericht kunnen geen rechten worden ontleend. ________________________________ From: [email protected] [mailto:[email protected]] On Behalf Of Tim Meagher Sent: dinsdag 6 oktober 2009 18:41 To: 'General Mark Logic Developer Discussion' Subject: [MarkLogic Dev General] How can I set the document properties when inserting a document with the XCC? Hi Folks, I am using the .Net XCC to load content into the MarkLogic (4.1-1) database. My code uses the ContentFactory to create the content and the Session object to insert the content: FileInfo fi = new FileInfo(xmlFile); Content content = ContentFactory.NewContent(DocumentURI, fi, options); Session.InsertContent(content); However, I would like to be able to add document properties to the document when it is inserted to be used as part of a CPF pipeline - so the properties need to be created when the document is inserted. Any suggestions? Thank you! Tim Meagher - AAOM Consulting
_______________________________________________ General mailing list [email protected] http://xqzone.com/mailman/listinfo/general
