Thanks a lot.
 
But you could say me how must be lib-search query then?
 
I have never use <searchable-expression> in lib-search.
 
 
Mariano Grau
Dpto. Sistemas
Grupo Joly
 

________________________________

De: [email protected] en nombre de Geert Josten
Enviado el: sáb 12/12/2009 11:25
Para: General Mark Logic Developer Discussion
Asunto: [MarkLogic Dev General] RE: To convert xpath query in lib-searchquery



Hi Mariano,

Your Xpath expression constrains the tests to the same pub element, but making 
that the context. But your search is operating on complete documents. If you 
add the path to your pub elements as <searchable-expression> among the options, 
your returned results should improve..

Kind regards,
Geert

>


Drs. G.P.H. Josten
Consultant


http://www.daidalos.nl/
Daidalos BV
Source of Innovation
Hoekeindsehof 1-4
2665 JZ Bleiswijk
Tel.: +31 (0) 10 850 1200
Fax: +31 (0) 10 850 1199
http://www.daidalos.nl/
KvK 27164984
De informatie - verzonden in of met dit emailbericht - 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
> Mariano Grau Calín
> Sent: zaterdag 12 december 2009 11:11
> To: [email protected]
> Subject: [MarkLogic Dev General] To convert xpath query in
> lib-search query
>
> Hi All,
>
> I'm using lib-search in my web application and a lib-search
> query match documents not desired.
>
> By example,
>
> doc()//root/pub[name='london' and section='astronomy']
>
> works fine and match documents with name and section equal to
> values in the same pub node.
>
> However, lib-search query as:
>
> search:search-summary(
> ...
> <cts:query xmlns:cts="http://marklogic.com/cts";>
> <https://mail.grupojoly.com/exchweb/bin/redir.asp?URL=http://m
> arklogic.com/cts%22%3E>
>   <cts:and-query>
>     <cts:element-value-query weight="1">
>
> <cts:QName>name</cts:QName>london<cts:option>lang=es</cts:option>
>     </cts:element-value-query>
>     <cts:element-value-query weight="1">
>
> <cts:QName>section</cts:QName>astronomy<cts:option>lang=es</ct
> s:option>
>     </cts:element-value-query>
>   </cts:and-query>
> </cts:query>
> ...
> )
>
> find more documents, where may be name='london' in pub i-node
> and section='astronomy' in pub j-node.
>
> Is posible get same results in lib-search query than xpath
> query and how?
>
> Thanks,
>
>
> Mariano Grau
> Dpto. Sistemas
> Grupo Joly
>
>

_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general


<<winmail.dat>>

_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general

Reply via email to