lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dan Funk <fu...@BATTELLE.ORG>
Subject Re: Displaying search context
Date Fri, 23 Sep 2005 12:27:53 GMT
What you are doing is a good, scalable practice.  You need to store 
those email messages somewhere outside of Lucene, and use a unique id to 
correlate the two.  When you want to display relevant text for a search 
result, find the file on disk, and pass it through the Lucene 
Highlighter  (see the Lucene sandbox).  This will give you what you are 
looking for, and it will scale well in the future.

Anand Kishore wrote:

>I am indexing emails through Lucene. The body of the mails is stored in an
>''Unstored" field. I also have a search interface setup which returns me all
>Documents matching my query. What i need is to display a few lines from the
>body of the mails where the queryTerm was found. How can this be achieved as
>the body is just indexed but not stored.
>- Andy

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

View raw message