lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Taylor <>
Subject Re: How do you check a field has been indexed correctly if not stored ?
Date Wed, 06 Jan 2010 10:21:09 GMT
Simon Willnauer wrote:
> Would indexReader#termDocs() help? You get all docs containing a
> specific term - that way you could iterate in reverse order though.
> simon

Thanks, almost if I do this I can determine that a document exists  with 
a term with a particular value works

 TermDocs termDocs = ir.termDocs(new 

but this doesnt work

 TermDocs termDocs = ir.termDocs(new 

which is what I really want, i.e that document has a term for this fieldname

(In any test there is only ever one document)


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message