lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ian Lea <>
Subject Re: Lucene Problems
Date Thu, 03 Feb 2011 17:43:30 GMT
The Lucene highlighter sounds just what you need. talks about
using it on an index of PDFs.  Google will find lots of other info.


On Thu, Feb 3, 2011 at 5:31 PM, 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

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message