You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucenenet.apache.org by ar...@apache.org on 2008/08/08 02:58:59 UTC

svn commit: r683780 - /incubator/lucene.net/trunk/C#/src/Lucene.Net/Search/BooleanScorer2.cs

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;