Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 57590 invoked from network); 3 Jul 2008 06:05:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Jul 2008 06:05:46 -0000 Received: (qmail 38897 invoked by uid 500); 3 Jul 2008 06:05:42 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 38858 invoked by uid 500); 3 Jul 2008 06:05:42 -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 38844 invoked by uid 99); 3 Jul 2008 06:05:42 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Jul 2008 23:05:42 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of wsnet@live.cn designates 65.54.246.211 as permitted sender) Received: from [65.54.246.211] (HELO bay0-omc3-s11.bay0.hotmail.com) (65.54.246.211) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Jul 2008 06:04:48 +0000 Received: from BAY119-W36 ([207.46.9.71]) by bay0-omc3-s11.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.3959); Wed, 2 Jul 2008 23:05:08 -0700 Message-ID: Content-Type: multipart/alternative; boundary="_c70548fb-734c-404b-90bf-5bedce09eda0_" X-Originating-IP: [222.66.20.82] From: lutan To: Subject: RE: how to statistics categories amount Date: Thu, 3 Jul 2008 14:05:08 +0800 Importance: Normal In-Reply-To: References: MIME-Version: 1.0 X-OriginalArrivalTime: 03 Jul 2008 06:05:08.0433 (UTC) FILETIME=[BEEA5410:01C8DCD2] X-Virus-Checked: Checked by ClamAV on apache.org --_c70548fb-734c-404b-90bf-5bedce09eda0_ Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: 8bit Anyone explain solr's function of facet ,thanks! How to using lucene to achieve. > From: erik@ehatchersolutions.com> To: java-user@lucene.apache.org> Subject: Re: how to statistics categories amount> Date: Sat, 28 Jun 2008 05:36:12 -0400> > > On Jun 28, 2008, at 3:57 AM, lutan wrote:> > if I search a keyword likes 'computer' in a shopping website.> > the result may contains.> > total:> > (1000) products .> > categories:> > pc (500) products .> > notebook (300) products .> > server (200) products .> >> > so how do get each categories 'amount.> > I try to search many times on onec user search,> > but it is so slow> > This is a case where you are probably better off starting with Solr, > which supports faceting natively.> > The main trick to making this fast is coming up with cached sets of > each of the categories and intersecting each of those sets with the > main result set and using the cardinality of the intersected sets for > the counts. Again, Solr is what I'd recommend as a starting point for > you.> > Erik> > > ----- ----------------------------------------------------------------> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org> For additional commands, e-mail: java-user-help@lucene.apache.org> _________________________________________________________________ ���ֻ�MSN����д�ʼ����ռ䣬���޹�ͨ���������ʣ� http://mobile.msn.com.cn/ --_c70548fb-734c-404b-90bf-5bedce09eda0_--