You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Ashley Collins <ac...@hotmail.com> on 2002/12/06 11:12:24 UTC

Indexing email messages?

I'm using Lucene to index MIME messages and have a couple of questions.

1) What is the best way to handle keyword fields which are repeated? Like 
"recipient" for example.

At the moment I have a for loop doing

        document.add(Field.Keyword("recipient", address));

But this seems to limit query results to messages that were sent to only the 
person I'm searching for...


Or, should I use Field.Text instead and write a custom analyzer which 
doesn't split email addresses. Then, store one field "recipients" which is a 
whitespace separated list of all the recipients?


2) I also store the sender in a keyword field, but searching isn't 
consistent. I can find some addresses, but not others. Where should I start 
looking for information to help with debugging?


3) Also, how do I make sure query terms that are for untokenized keyword 
fields don't get tokenized by QueryParse.parse()? I tried using the 
WhiteSpaceAnalyzer, but searching was still inconsistent.


Thanks in advance!
Ashley Collins





_________________________________________________________________
Add photos to your messages with MSN 8. Get 2 months FREE*. 
http://join.msn.com/?page=features/featuredemail


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Indexing email messages?

Posted by petite_abeille <pe...@mac.com>.
On Friday, Dec 6, 2002, at 11:12 Europe/Zurich, Ashley Collins wrote:

> I'm using Lucene to index MIME messages and have a couple of questions.

You should take a look at ZOE as it does all that and more. It's open 
source and uses Lucene to index every single bits of email.

http://guests.evectors.it/zoe/

Cheers,

PA.



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>