Two alternative routes you could take:

- explicitly specify a target forest at document-insert
- add a collection named S1 or S2 to each document at insert, and do a
collection-delete to get rid of all documents of one source..

Kind regards,
Geert

> -----Oorspronkelijk bericht-----
> Van: [email protected] [mailto:general-
> [email protected]] Namens Jason Hunter
> Verzonden: woensdag 15 mei 2013 8:40
> Aan: MarkLogic Developer Discussion
> Onderwerp: Re: [MarkLogic Dev General] Attaching more than one forest to
> a DB in ML
>
> You're on MarkLogic 6?
>
> If you really did what you say you did then you wouldn't see that
behavior.
> Which makes me think you didn't do exactly that.  :)
>
> My guess is you attached F2 to the database before doing the initial
load.
> That means you had a 50/50% split across the two forests after the first
> load, and removing F2 later resulted in you seeing just half your data.
But
> that's just a guess that would explain the result and could be an easy
> mistake in testing to make.
>
> -jh-
>
> On May 14, 2013, at 11:24 PM, sini narayanan <[email protected]>
> wrote:
>
> > Hi,
> >
> > I have a DB created in ML. And have a Forest(F1) attached to the DB.
> > All the documents published from the source S1 is now in the DB.
> >
> > A new source S2 will also be publishing documents into the same DB.
> > But I donot want these documents in the same forest.
> >
> > I want a new forest (F2) to be created for the same DB and then
publish
> documents into this forest,
> > so that in case I need to purge only the S2 documents, I can just
delete
> the forest.
> >
> > I have tried the above scenario. The DB already had 26002 documents. I
> created new Forest F2.
> > And then using xdmp:document-insert, I loaded a document into the DB
> specifying the new F2 ID.
> > The document got inserted and now the DB have 26003 documents.
> > After this I detached the forest F2 from the DB and performed an
> admin:forest-delete on F2.
> > After that when I explore, I have only 12953 docs. Why is that so? Am
I
> doing something wrong here?
> >
> > Thanks,
> > Sini
> > _______________________________________________
> > General mailing list
> > [email protected]
> > http://developer.marklogic.com/mailman/listinfo/general
>
> _______________________________________________
> 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