BUG: 
Lucene.Net.Spatial.Serialized.SerializedDVStrategy.ShapeDocValueSource.FunctionValuesAnonymousHelper:
 Added missing Explain() override that was causing the 
Lucene.Net.Spatial.DistanceStrategyTest.TestDistanceOrder() test to randomly 
fail.


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

Branch: refs/heads/api-work
Commit: 369f738bb7510a3e55fa84e52e33d66830d5dad8
Parents: b6426ce
Author: Shad Storhaug <[email protected]>
Authored: Thu Mar 9 12:49:41 2017 +0700
Committer: Shad Storhaug <[email protected]>
Committed: Thu Mar 9 12:49:41 2017 +0700

----------------------------------------------------------------------
 src/Lucene.Net.Spatial/Serialized/SerializedDVStrategy.cs | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/369f738b/src/Lucene.Net.Spatial/Serialized/SerializedDVStrategy.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Spatial/Serialized/SerializedDVStrategy.cs 
b/src/Lucene.Net.Spatial/Serialized/SerializedDVStrategy.cs
index e67e3a5..8bbc895 100644
--- a/src/Lucene.Net.Spatial/Serialized/SerializedDVStrategy.cs
+++ b/src/Lucene.Net.Spatial/Serialized/SerializedDVStrategy.cs
@@ -312,6 +312,11 @@ namespace Lucene.Net.Spatial.Serialized
                     }
                 }
 
+                public override Explanation Explain(int doc)
+                {
+                    return new Explanation(float.NaN, ToString(doc));
+                }
+
                 public override string ToString(int doc)
                 {
                     return outerInstance.GetDescription() + "=" + 
ObjectVal(doc);//TODO truncate?

Reply via email to