Thanks Geert!, It helps a lot to me


On Tue, Nov 30, 2010 at 1:00 PM, Geert Josten <[email protected]>wrote:

> Hi Aswini,
>
> I recommend not depending on forests, otherwise scaling your database later
> on will not be that easy.
>
> Collections and directories work independently within MarkLogic Server. In
> essence you could say that documents are always stored in some directory,
> but documents can be added to collections at random.
>
> Adding a document to a directory is as simple as inserting it with a uri
> that starts with the directory you would like to insert the document into.
> For instance:
>
> xdmp:document-insert("/mydir/myfile.xml", <myfile/>) creates a file
> myfile.xml within directory /mydir/. The directory is usually created
> automatically (default setting in the database properties, see admin console
> at http://localhost:8001/), otherwise you will need to call
> xdmp:create-directory first.
>
> Assigning documents to collections can be done with an additional argument
> on xdmp:document-insert, or using xdmp:document-add-collections.
>
> I think you will find the reference guide helpful:
> http://developer.marklogic.com/pubs/4.2/apidocs/All.html
>
> Kind regards,
> Geert
>
> >
>
>
> drs. G.P.H. (Geert) Josten
> Consultant
>
> Daidalos BV
> Hoekeindsehof 1-4
> 2665 JZ Bleiswijk
>
> T +31 (0)10 850 1200
> F +31 (0)10 850 1199
>
> mailto:[email protected]
> http://www.daidalos.nl/
>
> KvK 27164984
>
>
> De informatie - verzonden in of met dit e-mailbericht - 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
> > Aswini De
> > Sent: dinsdag 30 november 2010 8:18
> > To: [email protected]
> > Subject: [MarkLogic Dev General] Need help on forest & directory
>  >
> > Hi All,
> >
> > We have a different type of content those need to be ingested
> > in Marklogic XDBC server. Could you please explain me which
> > approaches we should follow:
> >
> > Approach -1 : we will create multiple forests (within our
> > created XDBC server) for each content-type.
> > Approach -2: We will create multiple directories within in a
> > single forest for each content-type.
> >
> > I want to know that, can we create collection within
> > directory? I think it is not possible but a directory can
> > belong multiple collections.
> >
> > I haven't yet found any method which provides facility to
> > ingest document directly inside the directory.  Does it
> > possible to ingest document within a directory?
> >
> > I am very new in Marklogic, please help.
> >
> >
> > Thanks,
> > Aswini
> >
> _______________________________________________
> General mailing list
> [email protected]
> http://developer.marklogic.com/mailman/listinfo/general
>
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to