You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucenenet.apache.org by sy...@apache.org on 2016/08/21 06:54:43 UTC
[04/18] lucenenet git commit: Added missing call to
Queries.Function.ValueSources.TermFreqValueSource.Reset(),
which was causing the Queries.Function.TestValueSources.TestTermFreq() test to
fail.
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/master
Commit: 1fa4ed9bda6ba35d4497345da18346ca86aea412
Parents: 22663d7
Author: Shad Storhaug <sh...@shadstorhaug.com>
Authored: Sun Aug 21 07:54:49 2016 +0700
Committer: Shad Storhaug <sh...@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?