Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 94580 invoked from network); 5 Jan 2010 16:24:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 5 Jan 2010 16:24:26 -0000 Received: (qmail 59209 invoked by uid 500); 5 Jan 2010 16:24:24 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 59123 invoked by uid 500); 5 Jan 2010 16:24:24 -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 59113 invoked by uid 99); 5 Jan 2010 16:24:24 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Jan 2010 16:24:24 +0000 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 simon.willnauer@googlemail.com designates 209.85.218.222 as permitted sender) Received: from [209.85.218.222] (HELO mail-bw0-f222.google.com) (209.85.218.222) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Jan 2010 16:24:15 +0000 Received: by bwz22 with SMTP id 22so10259892bwz.5 for ; Tue, 05 Jan 2010 08:23:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:reply-to:in-reply-to :references:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=HqBPyxj+Z3ILVYgO89+7PB2OjAC9wXqCBkrs0w/gaqA=; b=Et0ttS5d7v7dy089Dxi8mNmb3Tra9RT51AOW96Wxi1uKAufptuBGEIMjuGZPKqNg09 BsmQyi98FoHvIKexkBZGrHtA2OV9umC2lMS+yba95ukfS+nPuMTr9iYT7DeZf8REof/6 QjLDxtDe+/8B7MxBlahk3WYdxYA7MaHqykoRo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:reply-to:in-reply-to:references:date:message-id :subject:from:to:content-type:content-transfer-encoding; b=a3R9sYlpg11rCJIb385f4Az0W7LRE5DIxdgjeBQrvOID+9bFfQagpJvXFmmk/5TfBn RHvGUET8wgZmuIuQx4TsgtGUiEmSlQhB78F4Ck+78UjaD43aMzJgfpDRgzsysUpqkHfx bVuWjxu4E6998w9qhu2WG58gQ+3ddy0pOVJGo= MIME-Version: 1.0 Received: by 10.239.185.13 with SMTP id a13mr214427hbh.201.1262708633642; Tue, 05 Jan 2010 08:23:53 -0800 (PST) Reply-To: simon.willnauer@gmail.com In-Reply-To: <4B436414.90403@fastmail.fm> References: <4B436414.90403@fastmail.fm> Date: Tue, 5 Jan 2010 17:23:53 +0100 Message-ID: Subject: Re: How do you check a field has been indexed correctly if not stored ? From: Simon Willnauer To: java-user@lucene.apache.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Would indexReader#termDocs() help? You get all docs containing a specific term - that way you could iterate in reverse order though. simon On Tue, Jan 5, 2010 at 5:08 PM, Paul Taylor wrote: > > In my junittest code, I check the index has been created okay by checking > the value of various fields that have been indexed (and stored) > =C2=A0 i.e assertEquals("Farming Incident", > doc.getField(ArtistIndexField.ARTIST.getName()).stringValue()); > But if I'm only indexing the field , but not storing it the value isnt he= ld, > what else could i check instead > > thanks Paul > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org > For additional commands, e-mail: java-user-help@lucene.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org