Hi Shashi, For working with Collection metadata using the Java API, take a look at
http://docs.marklogic.com/guide/java/document-operations#id_89074 For future reference though, you can set the document collections on load into MarkLogic in Info Studio by clicking the “Document Settings” button under the “Destination Database” in the Load tab and then navigating to the “Collections” tab to name the collection. But better yet, if you’re using Java, you can just use Content Pump to load information and set the collections on load using the –output_collections or –filename_as_collection arguments. http://docs.marklogic.com/guide/ingestion/content-pump#id_87699 Hope this helps, Pete From: [email protected] [mailto:[email protected]] On Behalf Of Shashidhar Rao Sent: Sunday, January 25, 2015 4:53 AM To: [email protected] Subject: [MarkLogic Dev General] Defining Collections in Marklogic Hi. I have already loaded a bunch of xml files in marklogic database. I used Information studio to load these data. Now I want these loaded data to belong to a certain collection. Please help me in defining a collection for these data. How to make these data belong to a particular collection. Is there a way I can set in the database localhost:8001 or using java api Regards Shashi
_______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
