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 2014/11/07 06:39:16 UTC

[5/6] lucenenet git commit: Fixing compilation

Fixing compilation


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

Branch: refs/heads/master
Commit: dc90e16808aceb9123fbb68d46728eddb1f3a264
Parents: e27e761
Author: Itamar Syn-Hershko <it...@code972.com>
Authored: Fri Nov 7 07:38:29 2014 +0200
Committer: Itamar Syn-Hershko <it...@code972.com>
Committed: Fri Nov 7 07:38:29 2014 +0200

----------------------------------------------------------------------
 src/Lucene.Net.Queries/Function/BoostedQuery.cs | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/dc90e168/src/Lucene.Net.Queries/Function/BoostedQuery.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/Function/BoostedQuery.cs b/src/Lucene.Net.Queries/Function/BoostedQuery.cs
index 95343b2..5573a03 100644
--- a/src/Lucene.Net.Queries/Function/BoostedQuery.cs
+++ b/src/Lucene.Net.Queries/Function/BoostedQuery.cs
@@ -146,8 +146,7 @@ namespace Lucene.Net.Queries.Function
             }
         }
 
-
-        private class CustomScorer : Scorer
+        private sealed class CustomScorer : Scorer
         {
             private readonly BoostedQuery outerInstance;
 
@@ -157,7 +156,7 @@ namespace Lucene.Net.Queries.Function
             private readonly FunctionValues vals;
             private readonly AtomicReaderContext readerContext;
 
-            private CustomScorer(BoostedQuery outerInstance, AtomicReaderContext readerContext, BoostedQuery.BoostedWeight w, float qWeight, Scorer scorer, ValueSource vs)
+            public CustomScorer(BoostedQuery outerInstance, AtomicReaderContext readerContext, BoostedQuery.BoostedWeight w, float qWeight, Scorer scorer, ValueSource vs)
                 : base(w)
             {
                 this.outerInstance = outerInstance;
@@ -206,7 +205,7 @@ namespace Lucene.Net.Queries.Function
                 }
             }
 
-            public virtual Explanation Explain(int doc)
+            public Explanation Explain(int doc)
             {
                 var subQueryExpl = weight.qWeight.Explain(readerContext, doc);
                 if (!subQueryExpl.IsMatch)