Yes sure :

*In "Path Namespaces" :*
 - prefix : my
 - namespace uri : http://my_namespace

*In "Path Range Indexes" :*
 - scalar type : string
 - path expression : /my:root/my:elt[@att="val"]
 - collation : http://marklogic.com/collation/ (Root Collation)
 - range value positions : false
 - invalid values : ignore

Any thing else ?

Regards.

2012/10/31 Geert Josten <geert.jos...@dayon.nl>

> Hi Pascal,
>
>
>
> Can you show or tell exactly what settings you made in the admin interface?
>
>
>
> Kind regards,
>
> Geert
>
>
>
> *Van:* general-boun...@developer.marklogic.com [mailto:
> general-boun...@developer.marklogic.com] *Namens *Pascal Cadet
> *Verzonden:* woensdag 31 oktober 2012 16:01
>
> *Aan:* MarkLogic Developer Discussion
> *Onderwerp:* Re: [MarkLogic Dev General] Path index with namespace in an
> serialized cts:query node
>
>
>
> Geert,
>
>
>
> I already do this because a "cts:path-range-query" is all rigtht.
>
> It seems to a bug in the search module with path index with namespace. Do
> you think that ?
>
>
>
> Pascal
>
> 2012/10/31 Geert Josten <geert.jos...@dayon.nl>
>
> Hi Pascal,
>
>
>
> You are right, twice. It looks like you have to add path-namespaces in the
> admin console. It is next to where you add the path index..
>
>
>
> Kind regards,
>
> Geert
>
>
>
> *Van:* general-boun...@developer.marklogic.com [mailto:
> general-boun...@developer.marklogic.com] *Namens *Pascal Cadet
> *Verzonden:* woensdag 31 oktober 2012 15:39
> *Aan:* MarkLogic Developer Discussion
> *Onderwerp:* Re: [MarkLogic Dev General] Path index with namespace in an
> serialized cts:query node
>
>
>
> Geert,
>
>
>
> There is already the namespace in the prolog of my xqy.
>
> Do you mean "xdmp:with-namespaces" ? With "xdmp:with-namespaces",
> the result is same ("no namespace binding"). Because the namespace to bind
> is in a element value and not in the element (or attribute).
>
>
>
> Regards,
>
>
>
> Pascal
>
> 2012/10/31 Geert Josten <geert.jos...@dayon.nl>
>
> Hi Pascal,
>
>
>
> Put declare namescape my ="http://my_namespace";; in the prolog of you
> xqy, or use xdmp:namespaces to wrap search:estimate if it needs to be
> dynamic.
>
>
>
> Kind regards,
>
> Geert
>
>
>
> *Van:* general-boun...@developer.marklogic.com [mailto:
> general-boun...@developer.marklogic.com] *Namens *Pascal Cadet
> *Verzonden:* woensdag 31 oktober 2012 15:23
> *Aan:* MarkLogic MailingList
> *Onderwerp:* [MarkLogic Dev General] Path index with namespace in an
> serialized cts:query node
>
>
>
> Hi !
>
>
>
> How can I use index path namespace in an serialized cts:query node ?
>
>
>
>          *search:estimate* (
>                  <cts:path-range-query *operator* =*"="* >
>                      <cts:path *xmlns* =*"
> http://marklogic.com/appservices/search"* *xmlns:my* =*"
> http://my_namespace"*> /my:root/my:elt[@att="val"]</cts:path>
>                      <cts:value *xsi:type* =*"xs:string"* *xmlns:xsi* =*"
> http://www.w3.org/2001/XMLSchema-instance"* >search</cts:value>
>              </cts:path-range-query>
>
>           )
>
>
>
> Result :
> [1.0-ml] XDMP-UNBPRFX: (err:XPST0081) Prefix my has no namespace binding
>
>
>
>
>
> Any idea ?
>
>
>
> Thanks
>
>
>
> Pascal
>
>
> _______________________________________________
> General mailing list
> General@developer.marklogic.com
> http://developer.marklogic.com/mailman/listinfo/general
>
>
>
>
>
> --
>
>
> *Pascal CADET*
>
> 06 12 97 02 53
>
> www.pressinnov.com
>
>
>
>
> _______________________________________________
> General mailing list
> General@developer.marklogic.com
> http://developer.marklogic.com/mailman/listinfo/general
>
>
>
>
>
> --
>
>
> *Pascal CADET*
>
> 06 12 97 02 53
>
> www.pressinnov.com
>
>
>
> _______________________________________________
> General mailing list
> General@developer.marklogic.com
> http://developer.marklogic.com/mailman/listinfo/general
>
>


-- 

*Pascal **CADET*
06 12 97 02 53
www.pressinnov.com
_______________________________________________
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to