lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael J. Prichard" <michael_prich...@mac.com>
Subject indexing emails
Date Fri, 16 Jun 2006 19:20:20 GMT
I am working on indexing emails and want to have a "to" field.  I am 
currently putting all the emails on one line seperated w/ spaces...example:

michael@foo.bar john@boo.com jane@bar.com

Then i index that with a StandardAnalyzer as follows:

doc.add(new Field("to", (String) itemContent.get("to"), Field.Store.YES, 
Field.Index.UN_TOKENIZED));

Question is...is this the best way to do it?  I want to be able to 
search for michael@foo.bar and pick out just those Documents, etc.

Thanks,
Michael



---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message