Re: Using Solr for indexing emails

2008-11-25 Thread Timo Sirainen
On Tue, 2008-11-25 at 20:45 +0530, Shalin Shekhar Mangar wrote: > On Mon, Nov 24, 2008 at 11:51 PM, Timo Sirainen <[EMAIL PROTECTED]> wrote: > > > > > DIH seems to be about Solr pulling data into it from an external source. > > That's not really practical wi

Re: Using Solr for indexing emails

2008-11-24 Thread Timo Sirainen
On Tue, 2008-11-25 at 12:20 +1100, Norberto Meijome wrote: > > Store the per-mailbox highest indexed UID in a new unique field created > > like "//". Always update it by deleting the > > old one first and then adding the new one. > > you mean delete, commit, add, commit? if you replace the record,

Re: Using Solr for indexing emails

2008-11-24 Thread Timo Sirainen
On Mon, 2008-11-24 at 14:25 +1100, Norberto Meijome wrote: > > The main problem is that before doing the search, I first have to check > > if there are any unindexed messages and then add them to Solr. This is > > done using a query like: > > - fl=uid > > - rows=1 > > - sort=uid desc > > - q=ui

Using Solr for indexing emails

2008-11-23 Thread Timo Sirainen
Hi, A while ago I implemented searching emails with Solr for my IMAP server (www.dovecot.org). Seems to work ok, but now I'm having a bit of trouble trying to figure out how to implement searching from multiple mailboxes efficiently. Would be great if someone had suggestions how to do things bette