Hi,
I have following query on cts:highlight
I am running this command:
Let $ctsquery := "a"
let $suggestions := search:search($query,$options)
let $response := $suggestions//search:result/title/text()
return
cts:highlight($response, $ctsquery, <b>{$cts:text}</b>)}
};
Response:
All is well
All the Best
....
....
Here I am unable to highlight 'a' in the response. But if my ctsquery is 'all'
it gets highlighted.
So my question is how to highlight ctsquery(characters/words)
I need the following output:
Query output
A <b A </b> ll is well
Al <b> Al </b> l is well
Be All the <b> Be </b> st
Best All the <b> Best </b>
How to achieve this?
Thanks,
Pragya
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general