[
https://issues.apache.org/jira/browse/LUCENE-2625?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12903227#action_12903227
]
Robert Muir commented on LUCENE-2625:
-------------------------------------
bq. 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.
termDocs() is unpositioned, implying you will seek() it yourself with
Term/TermEnum
bq. 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.
termDocs(term) is like termDocs() + seek(term), except for the special null
case as listed in the docs (If term is null, then all non-deleted docs are
returned with freq=1)
i'm inclined to agree termDocs(null) is inconsistent because it doesnt work
like termDocs() + seek(null), but instead returns the wacky AllTermsDocs
> 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]