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 4DBAA9BBD for ; Sat, 12 Nov 2011 19:51:14 +0000 (UTC) Received: (qmail 66515 invoked by uid 500); 12 Nov 2011 19:51:13 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 66451 invoked by uid 500); 12 Nov 2011 19:51:13 -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 66442 invoked by uid 99); 12 Nov 2011 19:51:13 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 12 Nov 2011 19:51:13 +0000 X-ASF-Spam-Status: No, hits=-2001.2 required=5.0 tests=ALL_TRUSTED,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; Sat, 12 Nov 2011 19:51:11 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 94DDC56D43 for ; Sat, 12 Nov 2011 19:50:51 +0000 (UTC) Date: Sat, 12 Nov 2011 19:50:51 +0000 (UTC) From: "Simon Willnauer (Commented) (JIRA)" To: dev@lucene.apache.org Message-ID: <2023971483.24386.1321127451611.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <949922371.6458.1308136367381.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (LUCENE-3205) remove MultiTermQuery get/inc/clear totalNumberOfTerms MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/LUCENE-3205?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13149132#comment-13149132 ] Simon Willnauer commented on LUCENE-3205: ----------------------------------------- bq. Working on a new test that counts the returned TermsEnum as replacement in TestNRQ. thanks uwe! > remove MultiTermQuery get/inc/clear totalNumberOfTerms > ------------------------------------------------------ > > Key: LUCENE-3205 > URL: https://issues.apache.org/jira/browse/LUCENE-3205 > Project: Lucene - Java > Issue Type: Bug > Reporter: Robert Muir > Assignee: Uwe Schindler > Fix For: 3.5, 4.0 > > Attachments: LUCENE-3205.patch > > > This method is not correct if the index has more than one segment. > Its also not thread safe, and it means calling query.rewrite() modifies > the original query. > All of these things add up to confusion, I think we should remove this > from multitermquery, the only thing that "uses" it is the NRQ tests, which > conditionalizes all the asserts anyway. -- 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