lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rob Staveley (Tom)" <>
Subject RE: indexing emails
Date Mon, 19 Jun 2006 08:02:02 GMT
> you cannot index PST files standalone

You can with LibPST (a C library - see, if they are 97-2002 format.

-----Original Message-----
From: Mike Streeton [] 
Sent: 19 June 2006 08:33
Subject: RE: indexing emails

When you talk about indexing emails are you indexing Outlook mails? We have
only found a few libraries that will do this and all require Outlook to be
online at the time i.e. you cannot index PST files standalone.

As far as indexing goes index each address in a separate un-tokenized field
not space delimited in a single field. It is also useful to put the To; CC
and BCC in a single field to enable you to search to email you have sent to
a person. I would also recommend you do some processing on the Subject field
to remove FW and RE this will allow you to search by subject and pick up all
emails in the thread.


-----Original Message-----
From: Michael Wechner []
Sent: 19 June 2006 08:21
Subject: Re: indexing emails

Rob Staveley (Tom) wrote:
> Having spent a lot of time getting this wrong myself in an e-mail 
> indexer(!), I urge you to consider whether in your query interface you
> need to look for mail to "john*" rather than, because
> may have been addressed to or If you
> only (untokenised) you will have to use a PrefixQuery to
> for "john*", and you are liable to hit BooleanQuery.TooManyClauses
> if you have more than 1024 (or BooleanQuery.getMaxClauseCount())
> addresses in your index starting with "john". 
> I'm trying to figure out a good design for this now for my own e-mail 
> indexing application,

btw, is your code available somewhere, I mean as Open Source ;-) ?


>  considering also whether I should cater for searches for "*smith*". 
> I'm coming round to the realisation that WildCardQuery
> PrefixQuery are not great things to depend upon for getting e-mail
> from an index and the right thing to do is to break the address up
> natural tokens ('.' or '-') in one field and leave them intact in
> field. It isn't ideal; e-mail addresses with no separator between
> or first names and last name still need a PrefixQuery or
WildcardQuery, if
> you want to search for last names, but it does make some queries
> which would otherwise blow up.
> -----Original Message-----
> From: karl wettin []
> Sent: 16 June 2006 21:13
> To:
> Subject: Re: indexing emails
> On Fri, 2006-06-16 at 15:20 -0400, Michael J. Prichard wrote:
>> 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:
>> 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 this the best way to do it?  I want to be able to 
>> search for and pick out just those Documents, etc.
> You can either do it as above (but you want to TOKENIZE the field) or
> could create a new UN_TOKENIZED field for each email address.
> The second will require less CPU as it does not involve any lexical 
> analysis. It will also create larger distance between the addresses in
> index (see span queries and term positions).
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

Michael Wechner
Wyona      -   Open Source Content Management   -    Apache Lenya                          
+41 44 272 91 61

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

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

View raw message