lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From synhers...@apache.org
Subject [22/50] [abbrv] lucenenet git commit: Added missing call to Queries.Function.ValueSources.TermFreqValueSource.Reset(), which was causing the Queries.Function.TestValueSources.TestTermFreq() test to fail.
Date Tue, 23 Aug 2016 23:18:15 GMT
Added missing call to Queries.Function.ValueSources.TermFreqValueSource.Reset(), which was
causing the Queries.Function.TestValueSources.TestTermFreq() test to fail.


Project: http://git-wip-us.apache.org/repos/asf/lucenenet/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucenenet/commit/1fa4ed9b
Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/1fa4ed9b
Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/1fa4ed9b

Branch: refs/heads/analysis-work
Commit: 1fa4ed9bda6ba35d4497345da18346ca86aea412
Parents: 22663d7
Author: Shad Storhaug <shad@shadstorhaug.com>
Authored: Sun Aug 21 07:54:49 2016 +0700
Committer: Shad Storhaug <shad@shadstorhaug.com>
Committed: Sun Aug 21 07:54:49 2016 +0700

----------------------------------------------------------------------
 .../Function/ValueSources/TermFreqValueSource.cs               | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/1fa4ed9b/src/Lucene.Net.Queries/Function/ValueSources/TermFreqValueSource.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/Function/ValueSources/TermFreqValueSource.cs b/src/Lucene.Net.Queries/Function/ValueSources/TermFreqValueSource.cs
index 69888e0..8f846d1 100644
--- a/src/Lucene.Net.Queries/Function/ValueSources/TermFreqValueSource.cs
+++ b/src/Lucene.Net.Queries/Function/ValueSources/TermFreqValueSource.cs
@@ -64,17 +64,13 @@ namespace Lucene.Net.Queries.Function.ValueSources
                 this.outerInstance = outerInstance;
                 this.terms = terms;
                 lastDocRequested = -1;
+                Reset();
             }
 
             private DocsEnum docs;
             private int atDoc;
             private int lastDocRequested;
 
-            //JAVA TO C# CONVERTER TODO TASK: Initialization blocks declared within anonymous
inner classes are not converted:
-            //	  {
-            //		  reset();
-            //	  }
-
             public virtual void Reset()
             {
                 // no one should call us for deleted docs?


Mime
View raw message