The highligher contrib package does what you're looking for:

http://svn.apache.org/repos/asf/lucene/java/trunk/contrib/highlighter/

By default it breaks the document into chunks roughly 100 characters
long. You can alter it to get tens words either side of the matched
term.



-- 
Miles Barr <[EMAIL PROTECTED]>
Runtime Collective Ltd.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to