Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 10883 invoked from network); 10 Feb 2009 15:29:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Feb 2009 15:29:02 -0000 Received: (qmail 95494 invoked by uid 500); 10 Feb 2009 15:28:56 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 95216 invoked by uid 500); 10 Feb 2009 15:28:55 -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 95205 invoked by uid 99); 10 Feb 2009 15:28:55 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Feb 2009 07:28:55 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of murat.yakici@cis.strath.ac.uk designates 130.159.196.96 as permitted sender) Received: from [130.159.196.96] (HELO smtphost.cis.strath.ac.uk) (130.159.196.96) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Feb 2009 15:28:46 +0000 Received: from [130.159.185.12] (pc-hotdesk.cis.strath.ac.uk [130.159.185.12]) by arnott.cis.strath.ac.uk (8.14.2/8.14.2/Debian-2build1) with ESMTP id n1AFRlIr007535 for ; Tue, 10 Feb 2009 15:27:47 GMT Message-ID: <49919CF3.9060300@cis.strath.ac.uk> Date: Tue, 10 Feb 2009 15:27:47 +0000 From: Murat Yakici User-Agent: Thunderbird 2.0.0.12 (Windows/20080213) MIME-Version: 1.0 To: java-user@lucene.apache.org Subject: Re: Listing fields in an index References: <18959421.post@talk.nabble.com> In-Reply-To: <18959421.post@talk.nabble.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-CIS-MailScanner-SpamCheck: SpamAssassin score=-1.44, ALL_TRUSTED X-Scanned-By: MIMEDefang on 130.159.196.96 X-Virus-Checked: Checked by ClamAV on apache.org Use myIndexReader.|*getFieldNames *(IndexReader.FieldOption fldOption)|; That should do. The selection of FieldOption's is important, therefore you need to know what you really want to get. Cheers, Murat Yakici Department of Computer & Information Sciences University of Strathclyde Glasgow, UK ------------------------------------------- The University of Strathclyde is a charitable body, registered in Scotland, with registration number SC015263. John Patterson wrote: > Hi, > > How do I list all the fields in an index? Some documents do not contain all > fields. > > Thanks, > > John > --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org