Hello,

To resolve this problem, you should add Namespace in admin console at 2
places :
 - Database configuration
 - App Server (or Group) configuration

I did in Database configuration but no in App Server.

Explanation in French here :
http://www.pressinnov.com/2013/01/bug-dans-lapi-search-de-marklogic/

Best regards,

Pascal


2012/11/1 Pascal Cadet <pascal.ca...@pressinnov.com>

> Hi Geert,
>
> Thanks for reply. You are right, I'll send a mail to the support.
> And effectively, I use cts function instead.
>
> Best regards,
>
> Pascal
>
> 2012/10/31 Geert Josten <geert.jos...@dayon.nl>
>
>> Hi Pascal,
>>
>>
>>
>> Nope, and sounds complete. Looking at the docs of search:parse, there is
>> an example that uses a namespace declaration like you do within the
>> cts:query element structure: http://docs.marklogic.com/search:parse
>>
>>
>>
>> So, it does sound like an omission in the search library with regard to
>> path-queries. I suggest sending relevant details in a mail to
>> supp...@marklogic.com.
>>
>>
>>
>> Meanwhile you could revert to cts functions and xdmp:estimate. Something
>> like xdmp:estimate(cts:search(collection(), cts:path-range-query(…)))
>>
>>
>>
>> Kind regards,
>>
>> Geert
>>
>>
>>
>> *Van:* general-boun...@developer.marklogic.com [mailto:
>> general-boun...@developer.marklogic.com] *Namens *Pascal Cadet
>> *Verzonden:* woensdag 31 oktober 2012 16:38
>>
>> *Aan:* MarkLogic Developer Discussion
>> *Onderwerp:* Re: [MarkLogic Dev General] Path index with namespace in an
>> serialized cts:query node
>>
>>
>>
>> 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
>>
>>
>
>
> --
>
> *Pascal **CADET*
> 06 12 97 02 53
> www.pressinnov.com
>
>


-- 

*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