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 BFD317CF4 for ; Thu, 15 Dec 2011 20:35:12 +0000 (UTC) Received: (qmail 77774 invoked by uid 500); 15 Dec 2011 20:35:07 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 77596 invoked by uid 500); 15 Dec 2011 20:35:06 -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 77585 invoked by uid 99); 15 Dec 2011 20:35:06 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Dec 2011 20:35:06 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of trejkaz@trypticon.org designates 209.85.213.48 as permitted sender) Received: from [209.85.213.48] (HELO mail-yw0-f48.google.com) (209.85.213.48) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Dec 2011 20:34:57 +0000 Received: by yhpp56 with SMTP id p56so2865202yhp.35 for ; Thu, 15 Dec 2011 12:34:36 -0800 (PST) Received: by 10.236.187.1 with SMTP id x1mr7553183yhm.58.1323981271722; Thu, 15 Dec 2011 12:34:31 -0800 (PST) Received: from mail-vw0-f48.google.com (mail-vw0-f48.google.com [209.85.212.48]) by mx.google.com with ESMTPS id m38sm12963620anq.16.2011.12.15.12.34.04 (version=SSLv3 cipher=OTHER); Thu, 15 Dec 2011 12:34:20 -0800 (PST) Received: by vbbfa15 with SMTP id fa15so1210379vbb.35 for ; Thu, 15 Dec 2011 12:34:02 -0800 (PST) MIME-Version: 1.0 Received: by 10.52.32.73 with SMTP id g9mr4142227vdi.125.1323981242184; Thu, 15 Dec 2011 12:34:02 -0800 (PST) Received: by 10.52.0.237 with HTTP; Thu, 15 Dec 2011 12:34:01 -0800 (PST) In-Reply-To: <1323959476195-3588729.post@n3.nabble.com> References: <1323959476195-3588729.post@n3.nabble.com> Date: Fri, 16 Dec 2011 07:34:01 +1100 Message-ID: Subject: Re: Trying to generate a list of DISTINCT field names from all documents in an index From: Trejkaz To: java-user@lucene.apache.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org On Fri, Dec 16, 2011 at 1:31 AM, todd.hunt wrote: > I've read through the Lucene In Action book and various postings online. > Maybe I'm not looking for the correct terms, but I can't find anything th= at > will return and cache a list of unique field names. =C2=A0If anyone can h= elp > point me towards a better solution, please let me know. If it's always over all documents, you have IndexReader.getFieldNames: http://bit.ly/sqDlAT TX --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org