Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 77401 invoked from network); 12 May 2006 09:55:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 12 May 2006 09:55:06 -0000 Received: (qmail 4445 invoked by uid 500); 12 May 2006 09:54:59 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 4417 invoked by uid 500); 12 May 2006 09:54:59 -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 4406 invoked by uid 99); 12 May 2006 09:54:59 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 May 2006 02:54:59 -0700 X-ASF-Spam-Status: No, hits=2.3 required=10.0 tests=DNS_FROM_RFC_ABUSE,DNS_FROM_RFC_WHOIS,FORGED_YAHOO_RCVD X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [209.191.85.25] (HELO web36608.mail.mud.yahoo.com) (209.191.85.25) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 12 May 2006 02:54:58 -0700 Received: (qmail 88571 invoked by uid 60001); 12 May 2006 09:54:34 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=f5uj+QCirA0uNmqNHE8VzvSk0E9RyaLBmMmYPOFfjlaui4u858DajIKd0R5do61kIv1+E9o2Sbh9kEZeKNIozdVCC9VwoxPtah6NohbCcqaYreAji7zZo60YuIdy3GL618yVyH5SWtTrSovMLEB2Fukxtqin6CrtMpu8JPcCq6s= ; Message-ID: <20060512095434.88569.qmail@web36608.mail.mud.yahoo.com> Date: Fri, 12 May 2006 02:54:34 -0700 (PDT) From: Marc Dauncey Reply-To: Marc Dauncey Subject: Re: Can lucene do this? To: java-user@lucene.apache.org In-Reply-To: <20060512093023.34882.qmail@web30913.mail.mud.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N This is true, but you'd need to optimise if you want additions to show up - also means getting a new IndexSearcher each time which is not workable for some Lucene applications (esp if you've pre-built filters and caches). I think the suggestion to use the new memory class is a good one. ----- Original Message ---- From: Amir Hosein Jadidi Nejad To: java-user@lucene.apache.org Sent: Friday, 12 May, 2006 10:30:23 AM Subject: Re: Can lucene do this? Hi, You can add per document to index without indexing all document from scratch ! You have real time transactions in this way. Regard, 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 ------------------------------------------------------------------- Amir Hosein Jadidi Nejad Student Of Computer Science Bu-Ali Sina University, Hamedan-Iran E-Mail : jadidi@basu.ac.ir , amir.jadidi@yahoo.com --------------------------------- Yahoo! Messenger with Voice. PC-to-Phone calls for ridiculously low rates. --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org