Bob, Do you have some sample content and queries you might be able to share to illustrate your situation? The built-in snippetting function does some additional processing on the query that it passes to cts:highlight to better target relevant content. This is the behavior that you see in the Oscars sample application.
I'd also like to understand where the Search API's snippetting function fell short for your requirements. We're always looking for ways to improve it. Any insight would be much appreciated. Justin Justin Makeig Product Manager Mark Logic Corporation 999 Skyway Road Suite 200 San Carlos, CA 94070 +1 650 655 2387 Phone [email protected]<mailto:[email protected]> www.marklogic.com<http://www.marklogic.com> <http://www.marklogic.com/><http://www.marklogic.com/> This e-mail and any accompanying attachments are confidential. The information is intended solely for the use of the individual to whom it is addressed. Any review, disclosure, copying, distribution, or use of this e-mail communication by others is strictly prohibited. If you are not the intended recipient, please notify us immediately by returning this message to the sender and delete all copies. Thank you for your cooperation. ________________________________________ From: [email protected] [[email protected]] On Behalf Of Runstein, Robert E. (Contr) (IS) [[email protected]] Sent: Tuesday, August 04, 2009 3:37 PM To: [email protected] Subject: [MarkLogic Dev General] cts:highlight issues when combining keyword and constaints Hi, How do I highlight search results when the query contains both keywords and constraints? I'm using the search API and have defined constraints in the options node I pass with my search. I have a custom transform-results function that creates the snippet passing the $ctsquery and the desired section of $results to cts:highlight. This works fine when my query has only keywords or when the contraints are ORed with the keywords, but when the constraints are ANDed (either implicitly or explicitly) my results contain no highlighting. I see that the Oscars application result highlighting works when keywords and constraints are used together. Any ideas about what I'm doing wrong? Thanks. Bob
_______________________________________________ General mailing list [email protected] http://xqzone.com/mailman/listinfo/general
