lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adriano Crestani (JIRA)" <>
Subject [jira] Commented: (LUCENE-2625) IndexReader.termDocs() retrieves no documents
Date Fri, 27 Aug 2010 04:58:53 GMT


Adriano Crestani commented on LUCENE-2625:

Thanks for the quick reply Shai and Robert.

It makes sense now, but it should be documented somewhere, mainly because the behavior has
change from 3.0 to 3.1. Everybody, since version 2, that used to iterate over all documents
that way, still expects it to work without calling seek, at least I did.

In my opinion, being unpositioned means the user needs to be aware about docs being retrieved
in any order, all that matters after all is to iterate over all documents in the index.

Another question is, if indexReader.termDocs(null) is used, where is it positioned if nothing
was defined in the parameter? Shouldn't it work as termDocs()? It just feels inconsistent
to me.

> IndexReader.termDocs() retrieves no documents
> ---------------------------------------------
>                 Key: LUCENE-2625
>                 URL:
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: Index
>    Affects Versions: 3.1
>            Reporter: Adriano Crestani
>             Fix For: 3.1
>         Attachments:
> TermDocs object returned by indexReader.termDocs() retrieves no documents, howerver,
the documents are retrieved correctly when using indexReader.termDocs(Term), indexReader.termDocs(null)

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

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

View raw message