Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 81462 invoked from network); 11 May 2009 15:35:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 11 May 2009 15:35:41 -0000 Received: (qmail 43986 invoked by uid 500); 11 May 2009 15:35:38 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 43959 invoked by uid 500); 11 May 2009 15:35:38 -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 43949 invoked by uid 99); 11 May 2009 15:35:38 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 May 2009 15:35:38 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of ianvink@gmail.com designates 209.85.221.127 as permitted sender) Received: from [209.85.221.127] (HELO mail-qy0-f127.google.com) (209.85.221.127) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 May 2009 15:35:29 +0000 Received: by qyk33 with SMTP id 33so3758786qyk.29 for ; Mon, 11 May 2009 08:35:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=7Mpcg914wdrBWzxBLyv9+64C6yw6MMaK2RvHf3A9aao=; b=klHc0XDXHzQKTSthhYEKuku9PWQfpQaFfQsfX2xHikFNxM/8RX8ALfv824noFafUH3 mQp9mHUr9OVxJQ0+yqCqcDiY7GsdtsrXXAjtw6hfGdBwWkXzq7RkXnO0m5EYVfJ8z3Br qrFIp4W7Eyar69Qx+DfXWJsEq8WFXePNt74KA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=CBj+qQVRNa1+IJ96k2f7Oi96/pc80CCds8on0LJCxjsSVG90lezmEQ4JD/BjA3oc30 u0o+nVtI6O6442emCgSJKhrfdM1Vek39Lh76qGV+2a0XwYihHX9G++pONySWHLhlwyit iXPFXxjabHhBw35f4pnLgPtwwf4rg3ibjlMi4= MIME-Version: 1.0 Received: by 10.220.85.67 with SMTP id n3mr9469457vcl.9.1242056108713; Mon, 11 May 2009 08:35:08 -0700 (PDT) Date: Mon, 11 May 2009 12:35:08 -0300 Message-ID: <5d53d5770905110835j39277308y9a1cf7bd1d5ffa12@mail.gmail.com> Subject: IndexReader.Terms - internals From: Ian Vink To: java-user@lucene.apache.org Content-Type: multipart/alternative; boundary=0016e646071026a8f70469a4b914 X-Virus-Checked: Checked by ClamAV on apache.org --0016e646071026a8f70469a4b914 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit IndexReader rdr = IndexReader.Open(myFolder); TermEnum terms = rdr.Terms((new Term(myTermName, ""))); (from .NET land, but it's all the same) This code works great, I can loop thru the terms nicely, but after it returns all the myTermName terms, it goes into all other terms. Is there a way to limit the rdr.Terms to return only those whose field is myTermName --0016e646071026a8f70469a4b914--