[MarkLogic Dev General] limiting words in search results

Mindie Sorenson SorensonMi at ldschurch.org
Wed Aug 20 18:52:45 PDT 2008


I'm trying to limit the number of words that are displayed for each search result.  For example, I need to have the results formatted like this:

... we have the opportunity and also the responsibility to help restore faith in the family. ...

I have been able to get the first paragraph from each document that contains the search phrase (responsibility), but I haven't been able to successfully limit the words to 7 words before the search phrase and 7 after the phrase.  I have looked through the cts:search  functions, but I haven't been able to find quite what I'm looking for.  Is there a function that will help me do this?

Thanks
Mindie

----------------------------------------------------------------------
NOTICE: This email message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://xqzone.marklogic.com/pipermail/general/attachments/20080820/e0eb8aea/attachment.html


More information about the General mailing list