Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 47308 invoked from network); 13 Apr 2009 10:02:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 13 Apr 2009 10:02:34 -0000 Received: (qmail 25698 invoked by uid 500); 13 Apr 2009 10:02:32 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 25615 invoked by uid 500); 13 Apr 2009 10:02:32 -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 25605 invoked by uid 99); 13 Apr 2009 10:02:32 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Apr 2009 10:02:32 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of noble.paul@gmail.com designates 209.85.132.250 as permitted sender) Received: from [209.85.132.250] (HELO an-out-0708.google.com) (209.85.132.250) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Apr 2009 10:02:23 +0000 Received: by an-out-0708.google.com with SMTP id b2so1094884ana.5 for ; Mon, 13 Apr 2009 03:02:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:content-type :content-transfer-encoding; bh=UvZxqqUkArog+kznGxnNBHAeaaXwf3yIpmeNua6Wjek=; b=Yxg1qoN/N/65bEYO4oNeBEomyg3mexPrL3rOzO/9d0Ccb3zCu1764I3EFXzQ7rnTIu jeKxVoLxylddiVlmvagc0mHgOaXT70bRW7kXvghEgwUr8FpBPz7fnywBfhcFnxAX5e1V UkxXN6x+J6W8XyzUPgtfUOeJftvXAfX7qjGgI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; b=N9o2jyB0d/Bz735oJu+bpolM5nqGq8m3OllHRQlBsgWovzUKEAO6yeslWXsjy3YK69 M8p7UTY0tqjt+gaPxLIBVfAoj+PzrYrG2rE7+3fy/iifm7FfffyivC84X4Jn2SIRnL8Y ccr6qNaTZ45HPh50+V/BQr7LtscWXK42KH7q0= MIME-Version: 1.0 Received: by 10.231.19.204 with SMTP id c12mr1475333ibb.55.1239616921559; Mon, 13 Apr 2009 03:02:01 -0700 (PDT) In-Reply-To: <9ac0c6aa0904130259g131c1a71k5dc55fd7179d67c2@mail.gmail.com> References: <5e76b0ad0904122121le52a338q74d97224fe0356a2@mail.gmail.com> <49E2EC68.7060104@gmail.com> <5e76b0ad0904130116j4c3e356oe16ad234d6948a26@mail.gmail.com> <7af3bac90904130220m29b0a6c9w466d4ff8bdf4bec4@mail.gmail.com> <9ac0c6aa0904130259g131c1a71k5dc55fd7179d67c2@mail.gmail.com> From: =?UTF-8?B?Tm9ibGUgUGF1bCDgtKjgtYvgtKzgtL/gtLPgtY3igI0gIOCkqOCli+CkrOCljeCks+CljQ==?= Date: Mon, 13 Apr 2009 15:31:46 +0530 Message-ID: <5e76b0ad0904130301v2365f9ffn7277f45f47ff3ff0@mail.gmail.com> Subject: Re: Can I run Lucene in google app engine? To: java-user@lucene.apache.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org that is great. Is it possible to serialize and deserialize a RAMDirectory? --Noble On Mon, Apr 13, 2009 at 3:29 PM, Michael McCandless wrote: > Lucene's ConcurrentMergeScheduler spawns threads, but you can switch > that to SerialMergeScheduler which does not use threads. > > Some optional classes (FilterManager, ParallelMultiSearcher, > TimeLimitedCollector) spawn threads, but presumably you could avoid > them. > > Otherwise Lucene doesn't create its own threads. > > Mike > > On Mon, Apr 13, 2009 at 5:20 AM, Erdinc Yilmazel > wrote: >> I looked at the lucene source code out of curiosity to see if it >> spawns threads in indexing/searching and saw that it does. Are you >> sure it is going to work even if the index is read only? >> >> Erdinc >> >> 2009/4/13 Noble Paul =E0=B4=A8=E0=B5=8B=E0=B4=AC=E0=B4=BF=E0=B4=B3=E0=B5= =8D=E2=80=8D =C2=A0=E0=A4=A8=E0=A5=8B=E0=A4=AC=E0=A5=8D=E0=A4=B3=E0=A5=8D <= noble.paul@gmail.com>: >>> On Mon, Apr 13, 2009 at 1:10 PM, Chris Lu wrote: >>>> Surely it's possible, but it has too much limitations to prevent a sca= lable >>>> Luceen usage. However, it depends on your requirement. >>>> >>>> 1) You can not write index on disk, but you can read files. So theoret= ically >>>> if the index is read-only and small, you can package it with the war f= ile. >>> I can probably write the whole index as =C2=A0Blob and read it and serv= e >>> the index from RAM. This index can be loaded once in the start time >>> and i can setup a cron task to see if it got updated >>>> >>>> 2) If you need to update the index, you will have to store the index w= ith >>>> Google's data store, just like store an index into databases. Sure it'= ll >>>> work. But performance would suffer because of transferring the whole i= ndex >>>> into memory, then really start searching. On the other hand, this coul= d be a >>>> good solution for small index with per-user data. >>> as you said this is a solution if the index size is small >>> >>>> >>>> 3) For large changing indexes, you need to find other solutions to mai= ntain >>>> lucene index. >>>> >>>> My personal opinion is, finding a $20/month VPS hosting is far easier = than >>>> changing the way to code. >>> >>> The point is ,does Lucens use threads internally which the sandbox disa= llows >>> >>>> >>>> -- >>>> Chris Lu >>>> ------------------------- >>>> Instant Scalable Full-Text Search On Any Database/Application >>>> site: http://www.dbsight.net >>>> demo: http://search.dbsight.com >>>> Lucene Database Search in 3 minutes: >>>> http://wiki.dbsight.com/index.php?title=3DCreate_Lucene_Database_Searc= h_in_3_minutes >>>> DBSight customer, a shopping comparison site, (anonymous per request) = got >>>> 2.6 Million Euro funding! >>>> >>>> >>>> Noble Paul ??????? ?????? wrote: >>>>> >>>>> Is it possible to run Lucene in google app engine? has anyone tried i= t? >>>>> >>>>> >>>>> >>>>> >>>> >>>> >>>> --------------------------------------------------------------------- >>>> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org >>>> For additional commands, e-mail: java-user-help@lucene.apache.org >>>> >>>> >>> >>> >>> >>> -- >>> --Noble Paul >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org >>> For additional commands, e-mail: java-user-help@lucene.apache.org >>> >>> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org >> For additional commands, e-mail: java-user-help@lucene.apache.org >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org > For additional commands, e-mail: java-user-help@lucene.apache.org > > --=20 --Noble Paul --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org