Ace's bits of Sun, 26 May 2002 translated to:

>but a list that contains the whole content of the paragraph <p> element
>the hit was found in.
>
>So I need to do some hacking and insert a custom excerpt routine, I
>suppose. So where do I find that routine in the source and do you have
>any advice what I should or should not do and what to take care of... or
>something?

The excerpt routine (Display::excerpt) is in htsearch/Display.cc.
I believe all of the markup is stripped from the page content
before the excerpt text is stored, so I am not sure how you would
reconstruct a paragraph. It might be necessary to modify the way
in which the excerpt text is originally stored such that you have
the information necessary to reconstruct what you need. For that,
you would probably need to look at some of the parse methods in
the htdig code.

Jim


_______________________________________________________________

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

_______________________________________________
htdig-general mailing list <[EMAIL PROTECTED]>
To unsubscribe, send a message to <[EMAIL PROTECTED]> with a 
subject of unsubscribe
FAQ: http://htdig.sourceforge.net/FAQ.html

Reply via email to