Return-Path: X-Original-To: apmail-lucene-lucene-net-commits-archive@www.apache.org Delivered-To: apmail-lucene-lucene-net-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 96EA4201E for ; Sat, 7 May 2011 18:12:39 +0000 (UTC) Received: (qmail 30454 invoked by uid 500); 7 May 2011 18:12:39 -0000 Delivered-To: apmail-lucene-lucene-net-commits-archive@lucene.apache.org Received: (qmail 30425 invoked by uid 500); 7 May 2011 18:12:39 -0000 Mailing-List: contact lucene-net-commits-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: lucene-net-dev@lucene.apache.org Delivered-To: mailing list lucene-net-commits@lucene.apache.org Received: (qmail 30418 invoked by uid 99); 7 May 2011 18:12:39 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 07 May 2011 18:12:39 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 07 May 2011 18:12:38 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 6A04A23888FE; Sat, 7 May 2011 18:12:18 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Date: Sat, 07 May 2011 18:12:18 -0000 To: lucene-net-commits@lucene.apache.org From: digy@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20110507181218.6A04A23888FE@eris.apache.org> Subject: [Lucene.Net] svn commit: r1100582 - in /incubator/lucene.net/branches/Lucene.Net_2_9_4g: src/core/Search/TopDocs.cs test/core/Search/Regex/TestRegexpQuery.cs Author: digy Date: Sat May 7 18:12:18 2011 New Revision: 1100582 URL: http://svn.apache.org/viewvc?rev=1100582&view=rev Log: LUCENENET-412 Since we are at a point of loosing "drop-in replacement" we are free to make the changes related with TopDocs >From David Smith's eMail: >Morning, > >I checked out and compiled >https://svn.apache.org/repos/asf/incubator/lucene.net/trunk yesterday, looking to update from 2.0.0.4 > >To get the library to work with VB.Net I found I had to edit TopDocs.cs (src/core/Search/TopDocs.cs). >Being case-insensitive VB.Net can't differentiate between the three public variables (totalHits, scoreDocs & maxScore) and the three >public properties (TotalHits, ScoreDocs & MaxScore) > >David Modified: incubator/lucene.net/branches/Lucene.Net_2_9_4g/src/core/Search/TopDocs.cs incubator/lucene.net/branches/Lucene.Net_2_9_4g/test/core/Search/Regex/TestRegexpQuery.cs Modified: incubator/lucene.net/branches/Lucene.Net_2_9_4g/src/core/Search/TopDocs.cs URL: http://svn.apache.org/viewvc/incubator/lucene.net/branches/Lucene.Net_2_9_4g/src/core/Search/TopDocs.cs?rev=1100582&r1=1100581&r2=1100582&view=diff ============================================================================== --- incubator/lucene.net/branches/Lucene.Net_2_9_4g/src/core/Search/TopDocs.cs (original) +++ incubator/lucene.net/branches/Lucene.Net_2_9_4g/src/core/Search/TopDocs.cs Sat May 7 18:12:18 2011 @@ -30,14 +30,11 @@ namespace Lucene.Net.Search /// The total number of hits for the query. /// /// - [Obsolete("For backward compatibility. Use TotalHits instead")] - public int totalHits; + int totalHits; /// The top hits for the query. - [Obsolete("For backward compatibility. Use ScoreDocs instead")] - public ScoreDoc[] scoreDocs; + ScoreDoc[] scoreDocs; /// Stores the maximum score value encountered, needed for normalizing. - [Obsolete("For backward compatibility. Use MaxScore instead")] - private float maxScore; + float maxScore; public int TotalHits { Modified: incubator/lucene.net/branches/Lucene.Net_2_9_4g/test/core/Search/Regex/TestRegexpQuery.cs URL: http://svn.apache.org/viewvc/incubator/lucene.net/branches/Lucene.Net_2_9_4g/test/core/Search/Regex/TestRegexpQuery.cs?rev=1100582&r1=1100581&r2=1100582&view=diff ============================================================================== --- incubator/lucene.net/branches/Lucene.Net_2_9_4g/test/core/Search/Regex/TestRegexpQuery.cs (original) +++ incubator/lucene.net/branches/Lucene.Net_2_9_4g/test/core/Search/Regex/TestRegexpQuery.cs Sat May 7 18:12:18 2011 @@ -66,7 +66,7 @@ namespace Lucene.Net.Search.Regex private int GetRegexQueryHitsCount(string sRegex) { RegexQuery query = new RegexQuery(NewTerm(sRegex)); - return _searcher.Search(query, 5).totalHits; + return _searcher.Search(query, 5).TotalHits; } [Test]