lucene-lucene-net-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aro...@apache.org
Subject svn commit: r683780 - /incubator/lucene.net/trunk/C#/src/Lucene.Net/Search/BooleanScorer2.cs
Date Fri, 08 Aug 2008 00:58:59 GMT
Author: aroush
Date: Thu Aug  7 17:58:59 2008
New Revision: 683780

URL: http://svn.apache.org/viewvc?rev=683780&view=rev
Log:
LUCENENET-128: 2 bugs in BooleanScorer2

Modified:
    incubator/lucene.net/trunk/C#/src/Lucene.Net/Search/BooleanScorer2.cs

Modified: incubator/lucene.net/trunk/C#/src/Lucene.Net/Search/BooleanScorer2.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Lucene.Net/Search/BooleanScorer2.cs?rev=683780&r1=683779&r2=683780&view=diff
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Lucene.Net/Search/BooleanScorer2.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Lucene.Net/Search/BooleanScorer2.cs Thu Aug  7 17:58:59
2008
@@ -49,7 +49,7 @@
 			private int lastScoredDoc = - 1;
 			public override float Score()
 			{
-				if (this.Doc() > lastScoredDoc)
+				if (this.Doc() >= lastScoredDoc)
 				{
 					lastScoredDoc = this.Doc();
 					Enclosing_Instance.coordinator.nrMatchers += base.nrMatchers;
@@ -85,7 +85,7 @@
 			
 			public override float Score()
 			{
-				if (this.Doc() > lastScoredDoc)
+				if (this.Doc() >= lastScoredDoc)
 				{
 					lastScoredDoc = this.Doc();
 					Enclosing_Instance.coordinator.nrMatchers += requiredNrMatchers;



Mime
View raw message