Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 25786 invoked from network); 3 Sep 2010 13:09:57 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 3 Sep 2010 13:09:57 -0000 Received: (qmail 29541 invoked by uid 500); 3 Sep 2010 13:09:55 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 29144 invoked by uid 500); 3 Sep 2010 13:09:52 -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 29136 invoked by uid 99); 3 Sep 2010 13:09:51 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Sep 2010 13:09:51 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [208.65.145.81] (HELO p02c12o148.mxlogic.net) (208.65.145.81) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Sep 2010 13:09:43 +0000 Received: from unknown [67.132.206.99] (EHLO donkey.hmsonline.com) by p02c12o148.mxlogic.net(mxl_mta-6.7.0-0) with ESMTP id 283f08c4.0.121703.00-395.232020.p02c12o148.mxlogic.net (envelope-from ); Fri, 03 Sep 2010 07:09:23 -0600 (MDT) X-MXL-Hash: 4c80f3832f30a91a-5718dce30f62ca4186aa3965acd1af2856699700 Received: from pwex01.zoo.hmsonline.com (pwex01.hmsonline.com [10.67.88.109]) by donkey.hmsonline.com (8.13.1/8.13.1) with ESMTP id o83D9FF0022834 for ; Fri, 3 Sep 2010 09:09:15 -0400 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: How to do facet search in lucene, NOT solr ? Date: Fri, 3 Sep 2010 08:59:52 -0400 Message-ID: <67B9FB634299E5469D36BF5B3537F024C2D6B3@pwex01.zoo.hmsonline.com> In-Reply-To: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: How to do facet search in lucene, NOT solr ? Thread-Index: ActIKwQ33oNx5+YuS0W0G/AHqCiuNgDPMdTQ References: From: "Nik Kolev" To: X-Spam: [F=0.2000000000; CM=0.500; S=0.200(2010073001)] X-MAIL-FROM: X-SOURCE-IP: [67.132.206.99] X-AnalysisOut: [v=1.0 c=1 a=YLUzdI8Pwk4A:10 a=VphdPIyG4kEA:10 a=kj9zAlcOel] X-AnalysisOut: [0A:10 a=xdWuvbPJTlx+8X/s3BW2YQ==:17 a=1XWaLZrsAAAA:8 a=pGL] X-AnalysisOut: [kceISAAAA:8 a=mV9VRH-2AAAA:8 a=m8otYfozewvOb60kzFcA:9 a=ps] X-AnalysisOut: [ZQYY5cb0KGEBCQFacA:7 a=En9IUkdJU8z70yXDyqWNkNlJe2YA:4 a=Cj] X-AnalysisOut: [uIK1q_8ugA:10 a=MSl-tDqOz04A:10] You can also take a look at this: http://code.google.com/p/bobo-browse/ -----Original Message----- From: Li Li [mailto:fancyerii@gmail.com]=20 Sent: Monday, August 30, 2010 6:06 AM To: java-user@lucene.apache.org Subject: Re: How to do facet search in lucene, NOT solr ? I think you can read the codes of solr. I guess you can implement a collect to get all hit docs into a DocSet(bitset). Also getting facet fields into memory(doc id->field value) then loop the DocSet to count it. 2010/8/30 fulin tang : > we are building a search system on top of lucene, and we are now > looking for a facet feature > > So it there a easy way to do this ? > > btw, we do not want to switch to solr just for this! > > --------------------------------------------------------------------- > 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