Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 10352 invoked from network); 14 Jun 2006 03:33:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 14 Jun 2006 03:33:26 -0000 Received: (qmail 54978 invoked by uid 500); 14 Jun 2006 03:33:21 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 54950 invoked by uid 500); 14 Jun 2006 03:33:21 -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 54938 invoked by uid 99); 14 Jun 2006 03:33:20 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Jun 2006 20:33:20 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of heritrix.lucene@gmail.com designates 64.233.184.233 as permitted sender) Received: from [64.233.184.233] (HELO wr-out-0506.google.com) (64.233.184.233) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Jun 2006 20:33:20 -0700 Received: by wr-out-0506.google.com with SMTP id i34so29562wra for ; Tue, 13 Jun 2006 20:32:59 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=U8Gl9PETTA9ZvAPMCQGxJjBgp89xt+hbNWFewlT0nz03FSmIJgCwd4uYphn6sNjGFelA8c40KnlimkI9rolyPeI+M1sW/nD3ChTYM1KR4GQh9q/ignAJihflpuwkUPB4uIY3SpmkBqT1j6kDNEWikKwyxeq3rwdTbbWsEfo1MJk= Received: by 10.65.250.17 with SMTP id c17mr141245qbs; Tue, 13 Jun 2006 20:32:59 -0700 (PDT) Received: by 10.65.183.15 with HTTP; Tue, 13 Jun 2006 20:32:59 -0700 (PDT) Message-ID: Date: Wed, 14 Jun 2006 09:02:59 +0530 From: heritrix.lucene To: java-user@lucene.apache.org Subject: Re: Getting count on distinct values of a field. In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_32798_16831395.1150255979453" References: X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_Part_32798_16831395.1150255979453 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline I am sorry for my stupid question. Thanks..... :-) Regards, On 6/13/06, Chris Hostetter wrote: > > > : But what if that word is present in other fields also. > : does "docFreq " only look into that particular field ?? > > docFreq tells you the frequency of a term, a term is a field and a value > -- if you want the counts of a value across multiple fields, you'll have > to add them up yourself. (or make a field that contains the union of all > the other fields) > > : > : From: vipin sharma > : > : Reply-To: java-user@lucene.apache.org > : > : To: java-user@lucene.apache.org > : > : Subject: Getting count on distinct values of a field. > : > : > : > : Hi, > : > : i am having problem in getting the count on distict values of a > field. > : > The > : > : reason for getting this value is that, each of all documents in > index > : > : belongs to one predefined class and i want to get the number of > : > documents > : > : belonging to each class. > : > : > : > : Regards.. > > > -Hoss > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org > For additional commands, e-mail: java-user-help@lucene.apache.org > > ------=_Part_32798_16831395.1150255979453--