lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Muir (Created) (JIRA)" <>
Subject [jira] [Created] (LUCENE-3967) nuke AtomicReader.termDocsEnum(termState) and termPositionsEnum(termState)
Date Sun, 08 Apr 2012 14:30:19 GMT
nuke AtomicReader.termDocsEnum(termState) and termPositionsEnum(termState)

                 Key: LUCENE-3967
             Project: Lucene - Java
          Issue Type: Task
            Reporter: Robert Muir

These are simply sugar methods anyway, and so expert that I don't think we need sugar here
at all.
If someone wants to get DocsEnum via a saved TermState they can just use TermsEnum!

But having these public in AtomicReader i think is pretty confusing and overwhelming.

In fact, nothing in Lucene even uses these methods, except a sole assert statement in PhraseQuery,

which I think can be written more clearly anyway:

         // PhraseQuery on a field that did not index
         // positions.
         if (postingsEnum == null) {
-          assert reader.termDocsEnum(liveDocs, t.field(), t.bytes(), state, false) != null:
"termstate found but no term exists in reader";
+          assert te.seekExact(t.bytes(), false) : "termstate found but no term exists in

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


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

View raw message