Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 97559 invoked from network); 12 May 2006 01:33:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 12 May 2006 01:33:32 -0000 Received: (qmail 79361 invoked by uid 500); 12 May 2006 01:33:29 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 78593 invoked by uid 500); 12 May 2006 01:33:26 -0000 Mailing-List: contact java-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-user@lucene.apache.org Delivered-To: mailing list java-user@lucene.apache.org Received: (qmail 78580 invoked by uid 99); 12 May 2006 01:33:25 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 May 2006 18:33:25 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [69.55.225.129] (HELO ehatchersolutions.com) (69.55.225.129) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 May 2006 18:33:25 -0700 Received: by ehatchersolutions.com (Postfix, from userid 504) id 5CE7B33C687; Thu, 11 May 2006 21:33:04 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 3.1.1 (2006-03-10) on javelina X-Spam-Level: Received: from [172.16.1.101] (va-71-53-203-135.dhcp.sprint-hsd.net [71.53.203.135]) by ehatchersolutions.com (Postfix) with ESMTP id A245633C664 for ; Thu, 11 May 2006 21:33:03 -0400 (EDT) Mime-Version: 1.0 (Apple Message framework v750) In-Reply-To: <55F9EF953014514EB6BEE1F5198CEEB406D0D4@exchange.slc.mainstreamdata.com> References: <55F9EF953014514EB6BEE1F5198CEEB406D0D4@exchange.slc.mainstreamdata.com> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Erik Hatcher Subject: Re: Can lucene do this? Date: Thu, 11 May 2006 21:32:54 -0400 To: java-user@lucene.apache.org X-Mailer: Apple Mail (2.750) X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Status: No, score=-1.0 required=5.0 tests=AWL,BAYES_00, RCVD_IN_SORBS_DUL autolearn=no version=3.1.1 X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Scott, Have a look at the MemoryIndex (in contrib/memory) - it is perfect for this sort of thing. You'd index each e-mail individually into a MemoryIndex and then run all the queries against it getting a hit or not. Erik On May 11, 2006, at 9:28 PM, Scott Smith wrote: > I'm building an application which has to provide "real-time" searching > of emails as they come in. I have a number of search strings that I > need to apply against each email as it comes in and then do something > with the email based on which search string(s) get a hit. > > > > My initial thought was to create a lucene index of the emails received > in the last N seconds (where N is around 5 since I don't have to be > quite real-time) in a memory directory, do my searches and then delete > the index and create a new index for emails received in the next 5 > seconds. I'm a little concerned because the number of search strings > will probably grow over time and so there is a bit of a scalability > issue-though I'm not sure there's anyway around that other than doing > parallel processing on different machines. > > > > I'm wondering if anyone has any experience doing this kind of thing > and > has additional or alternate suggestions?? > > > > Scott > > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org