Return-Path: Delivered-To: apmail-jakarta-lucene-user-archive@www.apache.org Received: (qmail 97025 invoked from network); 10 Dec 2004 20:27:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 10 Dec 2004 20:27:25 -0000 Received: (qmail 28900 invoked by uid 500); 10 Dec 2004 20:27:12 -0000 Delivered-To: apmail-jakarta-lucene-user-archive@jakarta.apache.org Received: (qmail 28850 invoked by uid 500); 10 Dec 2004 20:27:12 -0000 Mailing-List: contact lucene-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Lucene Users List" Reply-To: "Lucene Users List" Delivered-To: mailing list lucene-user@jakarta.apache.org Received: (qmail 28809 invoked by uid 99); 10 Dec 2004 20:27:11 -0000 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=FORGED_RCVD_HELO,HTML_50_60,HTML_MESSAGE,HTML_TITLE_EMPTY X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from ns.cybersites.net (HELO ns.uscybersites.net) (206.98.167.2) by apache.org (qpsmtpd/0.28) with ESMTP; Fri, 10 Dec 2004 12:27:11 -0800 Received: from [127.0.0.1] (unknown [216.126.80.147]) by ns.uscybersites.net (Postfix) with ESMTP id 2CC6E82382 for ; Fri, 10 Dec 2004 14:44:36 -0500 (EST) Message-ID: <41BA0631.3030405@max3d.com> Date: Fri, 10 Dec 2004 15:25:21 -0500 From: "amigo@max3d.com" User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Lucene Users List Subject: Re: No of docs using IndexSearcher References: <4568BE33B520DD43B7B24DE0B609B215523556@htexc.hq.htinc.com> In-Reply-To: <4568BE33B520DD43B7B24DE0B609B215523556@htexc.hq.htinc.com> Content-Type: multipart/alternative; boundary="------------070008050404040200020807" X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N --------------070008050404040200020807 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit If your index is open shouldnt there be an instance of IndexReader already there? Ravi said the following on 12/10/2004 3:13 PM: >I already have a field with a constant value in my index. How about >using IndexSearcher.docFreq(new Term(field,value))? Then I don't have to >instantiate IndexReader. > >-----Original Message----- >From: amigo@max3d.com [mailto:amigo@max3d.com] >Sent: Friday, December 10, 2004 2:59 PM >To: Lucene Users List >Subject: Re: No of docs using IndexSearcher > >numDocs() > >http://jakarta.apache.org/lucene/docs/api/org/apache/lucene/index/IndexR >eader.html#numDocs() > > > >Ravi said the following on 12/10/2004 2:42 PM: > > > >>How do I get the number of docs in an index If I just have access to a >> >> > > > >>searcher on that index? >> >>Thanks in advance >>Ravi. >> >>--------------------------------------------------------------------- >>To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org >>For additional commands, e-mail: lucene-user-help@jakarta.apache.org >> >> >> >> >> >> >> > >--------------------------------------------------------------------- >To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org >For additional commands, e-mail: lucene-user-help@jakarta.apache.org > > > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org >For additional commands, e-mail: lucene-user-help@jakarta.apache.org > > > > > --------------070008050404040200020807--