Thank you Geert !!!! I think this is the "missing piece" (from my
brain).
It was alluded to in a previous response but I just didn't get it ...
To be clear ... the query component of cts:search( source , query ) can
contain references to documents and collections
which are 'add in' to the source ? Or I guess more precisely refines the
set of source documents. Is that right ?
Could I also make use of this in cts:hilight ?
Where my original question was to search a paragraph (which I already
fetched) to find words which are matches to *other documents*). E.g.
I could do something vaguely like this
cts:hiliht( "A paragraph" ,
a cts:query which includes cts:document-query ,
<A href=page.xquery?term={$cts:text|}>{$cts:text}</A> );
Or is that asking too much ?
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Geert
Josten
Sent: Sunday, November 22, 2009 6:39 AM
To: General Mark Logic Developer Discussion
Subject: RE: [MarkLogic Dev General] RE: Creating Collections
Hi David,
> 1) Move these 2 into their own private directory
> 2) Create a collection with these 2 docs (learning how to do
> that now, thanks to the group !)
> 3) Search the 2 docs seperately and try to combine the
> results (very ugly , all sorts of extra work needed to
> combine the results)
> 4) Search the 2 documents in ONE search. Thanks to the suggestion of
> using multiple documents to fn:doc() I found this search
> works *exactly how I want*
For the sake of completeness, there is also the cts:document-query()
function, which takes a sequence of document uris. That way, you can
combine the match for certain document uris with your other queries, and
even tie them to particular subparts with cts:and-query()..
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.
_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general
_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general