Hi Andrew,

You should be able to use search:parse to convert your search string into a 
cts:query..

Kind regards,
Geert

> Given a query like "hello AND foo:bar" how I can use
> cts:highlight to highlight the results in the document itself?
>
> I use the search api (search:search) to run the initial
> search, and would like to highlight the page after the user
> has clicked through from one of the results (passing the the
> uri and the search:response//search:qtext through to the next page)
>
> cts:highlight expects a cts:query as the 2nd argument, but to
> create that it seems I would need to deconstruct "hello AND
> foo:bar" into a cts:and-query... is that the only approach?
>
> thanks
> andrew



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
General@developer.marklogic.com
http://xqzone.com/mailman/listinfo/general

Reply via email to