[ 
https://issues.apache.org/jira/browse/LUCENE-2625?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12903210#action_12903210
 ] 

Robert Muir commented on LUCENE-2625:
-------------------------------------

Hi, I'm not sure about this one being a bug:

# the test calls termDocs(), which is unpositioned
# the test then calls next(), but it never positions it with seek()

so in my opinion calling next() on an uninitialized iterator can return wrong 
results, throw an exception, or return nothing at all.


> IndexReader.termDocs() retrieves no documents
> ---------------------------------------------
>
>                 Key: LUCENE-2625
>                 URL: https://issues.apache.org/jira/browse/LUCENE-2625
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: Index
>    Affects Versions: 3.1
>            Reporter: Adriano Crestani
>             Fix For: 3.1
>
>         Attachments: TestTermDocs.java
>
>
> TermDocs object returned by indexReader.termDocs() retrieves no documents, 
> howerver, the documents are retrieved correctly when using 
> indexReader.termDocs(Term), indexReader.termDocs(null) and 
> indexSearcher.search(Query).

-- 
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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to