Thanks Mary for response!

"my-uri-something.xml should be in the domain?"
correct, my documents are organised like "my-uri-something1.xml,
my-uri-something2.xml'

You already answered, Domain can not be created on regex.
Just wondering if we can create domain on regex then it would be another
level of flexibility.

Thanks,
Mihir



> Message: 2
> Date: Wed, 12 Mar 2014 19:09:58 +0800
> From: Mihir Das <[email protected]>
> Subject: [MarkLogic Dev General] Domain scope as document pattern
> To: [email protected]
> Message-ID:
>         <CAH=H5V+RK5eF6jRYRxUAh4Fy8OVkxr40fqWv0gK9wjLQwS4C=
> [email protected]>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Guys,
>
> I have to define a CPF domain with document scope matching to uri pattern.
> e.g. all document starting with "my-uri" should be included in domain.
>
> *can not use directory/collection
>
> Any help is appreciated!
>
> Thanks
> Mihir
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> http://developer.marklogic.com/pipermail/general/attachments/20140312/0ca4751d/attachment-0001.html
>
> ------------------------------
>
> Message: 3
> Date: Wed, 12 Mar 2014 08:03:03 -0700
> From: "Mary Holstege" <[email protected]>
> Subject: Re: [MarkLogic Dev General] Domain scope as document pattern
> To: "MarkLogic Developer Discussion" <[email protected]>
> Message-ID: <[email protected]>
> Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes
>
> On Wed, 12 Mar 2014 04:09:58 -0700, Mihir Das <[email protected]>
> wrote:
>
> > Guys,
> >
> > I have to define a CPF domain with document scope matching to uri
> > pattern.
> > e.g. all document starting with "my-uri" should be included in domain.
> >
> > *can not use directory/collection
> >
> > Any help is appreciated!
> >
> > Thanks
> > Mihir
>
> So just to be clear, you can't use directory because
>
> my-uri-something.xml should be in the domain?
>
> If instead you mean that all documens with uris like
> my-uri/something.xml should be in the domain, then
> that is in fact a directory scope on my-uri.
>
> You cannot create domains on uri regexes and
> the like.
>
> My recommendation is to use collections. You should
> be able to add a collection to the documents you are
> interested in when you ingest them. Documents can
> be in multiple collections, so having a special collection
> for this purpose should not in any way interfere with
> your application.
>
> //Mary
>
>
> ------------------------------
>
> _______________________________________________
> General mailing list
> [email protected]
> http://developer.marklogic.com/mailman/listinfo/general
>
>
> End of General Digest, Vol 117, Issue 22
> ****************************************
>
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to