Return-Path: Delivered-To: apmail-lucene-general-archive@www.apache.org Received: (qmail 66127 invoked from network); 25 Jul 2008 21:00:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 Jul 2008 21:00:42 -0000 Received: (qmail 36135 invoked by uid 500); 25 Jul 2008 21:00:40 -0000 Delivered-To: apmail-lucene-general-archive@lucene.apache.org Received: (qmail 36122 invoked by uid 500); 25 Jul 2008 21:00:40 -0000 Mailing-List: contact general-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: general@lucene.apache.org Delivered-To: mailing list general@lucene.apache.org Received: (qmail 36106 invoked by uid 99); 25 Jul 2008 21:00:40 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Jul 2008 14:00:40 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [209.85.132.240] (HELO an-out-0708.google.com) (209.85.132.240) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Jul 2008 20:59:45 +0000 Received: by an-out-0708.google.com with SMTP id c37so3827892anc.49 for ; Fri, 25 Jul 2008 13:59:53 -0700 (PDT) Received: by 10.100.94.14 with SMTP id r14mr625123anb.45.1217019593134; Fri, 25 Jul 2008 13:59:53 -0700 (PDT) Received: from ?10.17.4.4? ( [72.93.214.93]) by mx.google.com with ESMTPS id 61sm7698441wry.13.2008.07.25.13.59.52 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 25 Jul 2008 13:59:52 -0700 (PDT) From: Michael McCandless To: general@lucene.apache.org In-Reply-To: <002401c8ed79$26610f60$0308a8c0@WangJianxin> Subject: Re: How to use lucene for high search performance ? X-Priority: 3 References: <001701c8ed74$1c781480$0308a8c0@WangJianxin> <002401c8ed79$26610f60$0308a8c0@WangJianxin> Message-Id: <4AA55872-F1ED-41C9-920E-616CF2C02847@mikemccandless.com> Content-Type: text/plain; charset=GB2312; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Apple Message framework v926) Date: Fri, 25 Jul 2008 16:59:50 -0400 Cc: java-user@lucene.apache.org X-Mailer: Apple Mail (2.926) X-Virus-Checked: Checked by ClamAV on apache.org Let's move this thread to java-user (CC'd). =CD=F5=BD=A8=D0=C2 wrote: > Thank you. > > If the index files are very big(10G), I cannot load them to ram in =20 > one process. Ahh OK. > Shoud I use MutilSearcher to load index files with serval processes? > How about its performance? MultiSearcher alone doesn't really scale up -- it just lets you =20 combine the results of many Searchables. Maybe you mean ParallelMlultiSearcher? That class uses a separate =20 thread to search each Searchable, so if you are on a multi core/cpu =20 machine that should give a net reduction in latency of each search =20 (though I don't have any experience here!). > by the way, I think only .frq and .tis files need to load in ram. > And it can save some ram. You mean you don't use any positions information? Really the OS =20 should do the right thing for you -- it should only cache into its IO =20= cache those files that you actually use after which searches should be =20= fast. Mike > > roy > > ----- Original Message ----- > From: "Michael McCandless" > To: > Sent: Thursday, July 24, 2008 6:09 PM > Subject: Re: How to use lucene for high search performance ? > > > > Try InstantiatedIndexWriter/Reader (under contrib/instantiated)? > > It consumes more RAM than the RAMDirectory approach, but is faster > performance. > > Mike > > PS -- this sort of question should go to java-user in the future. > > =CD=F5=BD=A8=D0=C2 wrote: > >> >> Hi, >> If I use lucene to execute many search requests at one time, the >> io operation will be the bottleneck of the performance. >> So I use RAMDirectory to avoid io operation. >> But I found RAMDirectory cannot raise the performance much if the >> index is big( about 1.2G). >> Could anyone give me any advice to raise the performance for >> concurrent search operation? >> Thanks. >> >> roy