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:

Hi,

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.

Thanx

- Andy
http://da-tek-ee.blogspot.com



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

Reply via email to