You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucenenet.apache.org by ni...@apache.org on 2017/01/28 10:15:46 UTC

[03/22] lucenenet git commit: Lucene.Net.Queries.CustomScoreQuery refactor: Strict > IsStrict

Lucene.Net.Queries.CustomScoreQuery refactor: Strict > IsStrict


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

Branch: refs/heads/api-work
Commit: fd254c8480ebb5691349d4f5c18b055dea65b44f
Parents: 5fd4150
Author: Shad Storhaug <sh...@shadstorhaug.com>
Authored: Sat Jan 28 07:34:55 2017 +0700
Committer: Shad Storhaug <sh...@shadstorhaug.com>
Committed: Sat Jan 28 07:34:55 2017 +0700

----------------------------------------------------------------------
 src/Lucene.Net.Queries/CustomScoreQuery.cs           | 2 +-
 src/Lucene.Net.Tests.Queries/TestCustomScoreQuery.cs | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/fd254c84/src/Lucene.Net.Queries/CustomScoreQuery.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/CustomScoreQuery.cs b/src/Lucene.Net.Queries/CustomScoreQuery.cs
index 26b4a02..461d258 100644
--- a/src/Lucene.Net.Queries/CustomScoreQuery.cs
+++ b/src/Lucene.Net.Queries/CustomScoreQuery.cs
@@ -408,7 +408,7 @@ namespace Lucene.Net.Queries
         /// <P>
         /// Note: only has effect when the <seealso cref="ValueSource"/> part is not null.
         /// </summary>
-        public virtual bool Strict { get; set; } // LUCENENET TODO: Rename IsStrict
+        public virtual bool IsStrict { get; set; }
 
 
         /// <summary>

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/fd254c84/src/Lucene.Net.Tests.Queries/TestCustomScoreQuery.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.Queries/TestCustomScoreQuery.cs b/src/Lucene.Net.Tests.Queries/TestCustomScoreQuery.cs
index e18a41f..2971df9 100644
--- a/src/Lucene.Net.Tests.Queries/TestCustomScoreQuery.cs
+++ b/src/Lucene.Net.Tests.Queries/TestCustomScoreQuery.cs
@@ -287,19 +287,19 @@ namespace Lucene.Net.Tests.Queries
 
             // custom query, that should (by default) multiply the scores of q1 by that of the field
             CustomScoreQuery q3CustomMul = new CustomScoreQuery(q1, functionQuery);
-            q3CustomMul.Strict = true;
+            q3CustomMul.IsStrict = true;
             q3CustomMul.Boost = boost;
             Log(q3CustomMul);
 
             // custom query, that should add the scores of q1 to that of the field
             CustomScoreQuery q4CustomAdd = new CustomAddQuery(q1, functionQuery);
-            q4CustomAdd.Strict = true;
+            q4CustomAdd.IsStrict = true;
             q4CustomAdd.Boost = boost;
             Log(q4CustomAdd);
 
             // custom query, that multiplies and adds the field score to that of q1
             CustomScoreQuery q5CustomMulAdd = new CustomMulAddQuery(q1, functionQuery, functionQuery);
-            q5CustomMulAdd.Strict = true;
+            q5CustomMulAdd.IsStrict = true;
             q5CustomMulAdd.Boost = boost;
             Log(q5CustomMulAdd);