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 8D4237CDD for ; Thu, 15 Dec 2011 20:35:12 +0000 (UTC) Received: (qmail 77720 invoked by uid 500); 15 Dec 2011 20:35:07 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 77594 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 77578 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:56 +0000 Received: by yhpp56 with SMTP id p56so2865190yhp.35 for ; Thu, 15 Dec 2011 12:34:36 -0800 (PST) Received: by 10.236.153.42 with SMTP id e30mr7750534yhk.10.1323981268091; Thu, 15 Dec 2011 12:34:28 -0800 (PST) Received: from mail-qw0-f41.google.com (mail-qw0-f41.google.com [209.85.216.41]) by mx.google.com with ESMTPS id y58sm10407210yhi.17.2011.12.15.12.33.59 (version=SSLv3 cipher=OTHER); Thu, 15 Dec 2011 12:34:20 -0800 (PST) Received: by qan41 with SMTP id 41so606845qan.14 for ; Thu, 15 Dec 2011 12:33:57 -0800 (PST) MIME-Version: 1.0 Received: by 10.224.32.20 with SMTP id a20mr7714611qad.61.1323981237976; Thu, 15 Dec 2011 12:33:57 -0800 (PST) Received: by 10.229.11.72 with HTTP; Thu, 15 Dec 2011 12:33:57 -0800 (PST) In-Reply-To: <1323959476195-3588729.post@n3.nabble.com> References: <1323959476195-3588729.post@n3.nabble.com> Date: Fri, 16 Dec 2011 07:33:57 +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