lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nightowl...@apache.org
Subject [08/22] lucenenet git commit: Lucene.Net.Queries.Function.ValueSourceScorer refactor: CheckDeletes (setter only) > SetCheckDeletes(bool)
Date Sat, 28 Jan 2017 10:15:51 GMT
Lucene.Net.Queries.Function.ValueSourceScorer refactor: CheckDeletes (setter only) > SetCheckDeletes(bool)


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

Branch: refs/heads/api-work
Commit: 5d2ad90f56bca7313f1f25c426cb0c931220bb7f
Parents: d11d4da
Author: Shad Storhaug <shad@shadstorhaug.com>
Authored: Sat Jan 28 08:00:59 2017 +0700
Committer: Shad Storhaug <shad@shadstorhaug.com>
Committed: Sat Jan 28 08:00:59 2017 +0700

----------------------------------------------------------------------
 src/Lucene.Net.Queries/Function/ValueSourceScorer.cs | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/5d2ad90f/src/Lucene.Net.Queries/Function/ValueSourceScorer.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/Function/ValueSourceScorer.cs b/src/Lucene.Net.Queries/Function/ValueSourceScorer.cs
index d7ad046..66bcf0b 100644
--- a/src/Lucene.Net.Queries/Function/ValueSourceScorer.cs
+++ b/src/Lucene.Net.Queries/Function/ValueSourceScorer.cs
@@ -40,7 +40,7 @@ namespace Lucene.Net.Queries.Function
             this.reader = reader;
             this.maxDoc = reader.MaxDoc;
             this.values = values;
-            CheckDeletes = true;
+            SetCheckDeletes(true);
             this.liveDocs = MultiFields.GetLiveDocs(reader);
         }
 
@@ -52,12 +52,9 @@ namespace Lucene.Net.Queries.Function
             }
         }
 
-        public virtual bool CheckDeletes // LUCENENET TODO: Change to SetCheckDeletes(bool
checkDeletes) (has side-effect)
+        public virtual void SetCheckDeletes(bool checkDeletes)
         {
-            set
-            {
-                this.checkDeletes = value && reader.HasDeletions;
-            }
+            this.checkDeletes = checkDeletes && reader.HasDeletions;
         }
 
         public virtual bool Matches(int doc)


Mime
View raw message