lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dawn Zoƫ Raison <>
Subject Re: Fwd: Lucene Problems
Date Thu, 03 Feb 2011 17:50:42 GMT
We use the contrib package 'Highlighter' to do exactly that on our PDF 
newspaper website.


On 03/02/2011 17:31, Gong Li wrote:
> Hi,
> I am developing an advanced pdf search engine in java by using pdfbox and
> lucene. And I must display the context of each keyword in the user
> interface, but i cannot find a method to do so. Most of the methods provided
> are used to deal with documents with whole content in the specified field,
> and i just need the context of each keyword (i.e. some specified part of the
> contents in the specified field).
> For example, the contents in the specified field is "... aaa aaa bbb aaa aaa
> aaa aaa ..." and search for "bbb". And I want to display "aaa aaa *bbb* aaa
> aaa" in the UI. How?
> Are there any ways to do so???
> Thx.
> Cescy


*Dawn Raison*
Technical Director, Digitorial Ltd.	W:
M: 07956 609 618	        T: 01428 729 431
Reg: 04644583, England&  Wales
Church Villas Ecchinswell, Newbury, RG20  4TT

This email and any attached files are for the exclusive use of the 
addressee and may contain privileged and/or confidential information. If 
you receive this email in error you should not disclose the contents to 
any other person nor take copies but should delete it immediately. 
Digitorial Ltd makes no warranty as to the accuracy or completeness of 
this email and accepts no liability for its contents or use. Any 
opinions expressed in this email are those of the author and do not 
necessarily reflect the opinions of Digitorial Ltd.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message