[MarkLogic Dev General] cts:highlight performance
rgrimm at marklogic.com
Wed Jun 13 08:32:21 PDT 2007
A couple questions for you.
This document that takes 40 seconds to highlight, how large is it?
Have you configured a fragmentation policy?
In general I would recommend using cts:search() or cts:contains() to
find paragraphs in the search result that contain your keywords. Then
use cts:highlight() to highlight the terms in that paragraph.
Peter Hickman wrote:
> We are using cts:highlight to, er, do it's thing with a document. We
> then take the highlighted document and locate the first result to build
> a context for displaying in the search results. The problem is that with
> some large documents the highlight can take quite some time (40 seconds
> for a large document against 0.01 second for a typical document). Given
> that we are not making any use of any of the highlights but the first it
> would be useful to have a parameter to cts:highlight that limits how
> many it does.
> Given that this parameter does not exist does anyone have a suggestion
> as to how we might achieve the same result? We are looking at splitting
> larger documents up but they might not get significantly smaller.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 4500 bytes
Desc: S/MIME Cryptographic Signature
Url : http://xqzone.marklogic.com/pipermail/general/attachments/20070613/b9f60d89/smime-0001.bin
More information about the General