Return-Path: X-Original-To: apmail-lucene-java-user-archive@www.apache.org Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4DE18D583 for ; Wed, 29 May 2013 02:25:55 +0000 (UTC) Received: (qmail 1925 invoked by uid 500); 29 May 2013 02:25:53 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 1877 invoked by uid 500); 29 May 2013 02:25:53 -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 1864 invoked by uid 99); 29 May 2013 02:25:53 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 May 2013 02:25:53 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of brendan.grainger@gmail.com designates 209.85.220.48 as permitted sender) Received: from [209.85.220.48] (HELO mail-pa0-f48.google.com) (209.85.220.48) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 May 2013 02:25:49 +0000 Received: by mail-pa0-f48.google.com with SMTP id kp6so8669329pab.35 for ; Tue, 28 May 2013 19:25:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=NwbCS+HdHARb+b7Sr8km99CajxrnAmEYFK68o7rGBc0=; b=Och8xjDcJKIAePf/nPwerT5zIcLg/FptodKyvQiALhSfZp5MXrVAaT0WkG1fUKbJJg 0Wv9Qq3P0rUfmQneyhXddkqgY/ukHm0z1hhweKc6eWsJaQ/DuBMXMDVKqqM7CXt5VLdn zeZAmUkIcztbLArHTeBr2Pv5689sbtyyaexMO7Wt4G9JVEGgNSb0ZpFwCPNas2kE8ZOZ t/H1gIwMTCN52q8RFNrd+lpjQ4PMxc8MtEopHhAcW1mChGBSIt6/sJkcy4SYX61eiu4D WL2LbLPRmySz7EkNPhmsKLgo7YvvdPqfKXkcefAYFxQpZ48PftnHppmlVNB/eIjxN3O3 /ZRQ== MIME-Version: 1.0 X-Received: by 10.66.232.40 with SMTP id tl8mr1148667pac.121.1369794328686; Tue, 28 May 2013 19:25:28 -0700 (PDT) Received: by 10.70.14.99 with HTTP; Tue, 28 May 2013 19:25:28 -0700 (PDT) In-Reply-To: References: Date: Tue, 28 May 2013 22:25:28 -0400 Message-ID: Subject: Re: Difference between Group and Facet From: Brendan Grainger To: java-user@lucene.apache.org Content-Type: multipart/alternative; boundary=047d7b111b3960777204ddd21881 X-Virus-Checked: Checked by ClamAV on apache.org --047d7b111b3960777204ddd21881 Content-Type: text/plain; charset=UTF-8 Great, did it work? By the way, If found this article: http://blog.thetaphi.de/2012/02/is-your-indexreader-atomic-major.html very helpful in understanding the difference between AtomicReaders and CompositeReaders. Brendan On Tue, May 28, 2013 at 2:30 AM, raj wrote: > Thanks a lot Elisabeth > > > On Mon, May 27, 2013 at 7:43 PM, Elisabeth Adler > wrote: > > > Hi, > > I'm not sure what you mean with how to index a group. You basically index > > all documents, and then group them for the results. > > To stay on the books example: you index books including information about > > the author. So each document in the index is a book. But in your result > > list, you want to display authors. So you group by author. > > > > For the details about how to group, the package documentation ( > > http://lucene.apache.org/core/4_0_0-ALPHA/grouping/index.html) should > > cover > > what you need. > > Best, > > Elisabeth > > > > On 27 May 2013 14:13, raj wrote: > > > > > Hi, > > > > > > I wasnt able to find any guidelines on how to add a Group while > indexing. > > > There is a user guide and demo code for Facet which shows this. Can you > > > please show how to add a Group while indexing? > > > > > > Thanks, > > > Rajesh > > > > > > > > > On Mon, May 27, 2013 at 3:55 PM, raj > wrote: > > > > > > > Hi Elisabeth, > > > > > > > > Thanks. Let me go through the links > > > > > > > > Regards, > > > > Rajesh > > > > > > > > > > > > On Mon, May 27, 2013 at 3:09 PM, Elisabeth Adler < > > > > elisabeth.adler@gmail.com> wrote: > > > > > > > >> Hi Rajesh, > > > >> This entry explains it quite well: > > > >> > > > >> > > > > > > http://stackoverflow.com/questions/8550818/whats-the-difference-between-grouping-and-facet-in-lucene-3-5 > > > >> Best, > > > >> Elisabeth > > > >> > > > >> On 27 May 2013 11:16, raj wrote: > > > >> > > > >> > Hi, > > > >> > > > > >> > I was seeing that Lucene supports both Groups and Facets. But I > was > > > >> finding > > > >> > it difficult to understand the difference between both. > > > >> > > > > >> > https://issues.apache.org/jira/browse/LUCENE-1421 - Says "Ability > > to > > > >> Group > > > >> > search results by Field". So, is this by existing Fields that we > add > > > >> while > > > >> > indexing or something different as in FacetFields in Facets? > > > >> > > > > >> > > > > >> > Regards, > > > >> > Rajesh > > > >> > > > > >> > > > > > > > > > > > > > > -- Brendan Grainger www.kuripai.com --047d7b111b3960777204ddd21881--