lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Simon Willnauer <simon.willna...@googlemail.com>
Subject Re: How do you check a field has been indexed correctly if not stored ?
Date Tue, 05 Jan 2010 16:23:53 GMT
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 <paul_t100@fastmail.fm> 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)
>   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 held,
> 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


Mime
View raw message