Return-Path: X-Original-To: apmail-lucene-dev-archive@www.apache.org Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A19679F2A for ; Sun, 8 Apr 2012 17:18:41 +0000 (UTC) Received: (qmail 1134 invoked by uid 500); 8 Apr 2012 17:18:39 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 1042 invoked by uid 500); 8 Apr 2012 17:18:39 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 782 invoked by uid 99); 8 Apr 2012 17:18:38 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 08 Apr 2012 17:18:38 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 08 Apr 2012 17:18:37 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id CD396360EC0 for ; Sun, 8 Apr 2012 17:18:17 +0000 (UTC) Date: Sun, 8 Apr 2012 17:18:17 +0000 (UTC) From: "Uwe Schindler (Commented) (JIRA)" To: dev@lucene.apache.org Message-ID: <404472318.1032.1333905497852.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <113465847.933.1333895419290.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (LUCENE-3967) nuke AtomicReader.termDocsEnum(termState) and termPositionsEnum(termState) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/LUCENE-3967?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13249580#comment-13249580 ] Uwe Schindler commented on LUCENE-3967: --------------------------------------- die, die, die! > nuke AtomicReader.termDocsEnum(termState) and termPositionsEnum(termState) > -------------------------------------------------------------------------- > > Key: LUCENE-3967 > URL: https://issues.apache.org/jira/browse/LUCENE-3967 > Project: Lucene - Java > Issue Type: Task > Reporter: Robert Muir > Attachments: LUCENE-3967.patch > > > 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: > {noformat} > // 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 reader"; > {noformat} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org