lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From synhers...@apache.org
Subject svn commit: r1375247 - in /incubator/lucene.net/trunk: src/contrib/Spatial/Vector/DistanceValueSource.cs test/contrib/Spatial/Contrib.Spatial.Test.csproj test/contrib/Spatial/Prefix/TestSpatialPrefixField.cs
Date Mon, 20 Aug 2012 21:45:17 GMT
Author: synhershko
Date: Mon Aug 20 21:45:16 2012
New Revision: 1375247

URL: http://svn.apache.org/viewvc?rev=1375247&view=rev
Log:
LUCENE-4157

Removed:
    incubator/lucene.net/trunk/test/contrib/Spatial/Prefix/TestSpatialPrefixField.cs
Modified:
    incubator/lucene.net/trunk/src/contrib/Spatial/Vector/DistanceValueSource.cs
    incubator/lucene.net/trunk/test/contrib/Spatial/Contrib.Spatial.Test.csproj

Modified: incubator/lucene.net/trunk/src/contrib/Spatial/Vector/DistanceValueSource.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/src/contrib/Spatial/Vector/DistanceValueSource.cs?rev=1375247&r1=1375246&r2=1375247&view=diff
==============================================================================
--- incubator/lucene.net/trunk/src/contrib/Spatial/Vector/DistanceValueSource.cs (original)
+++ incubator/lucene.net/trunk/src/contrib/Spatial/Vector/DistanceValueSource.cs Mon Aug 20
21:45:16 2012
@@ -70,8 +70,7 @@ namespace Lucene.Net.Spatial.Vector
 				// make sure it has minX and area
 				if (validX.Get(doc) && validY.Get(doc))
 				{
-					var pt = new PointImpl(ptX[doc], ptY[doc]);
-					return enclosingInstance.calculator.Distance(enclosingInstance.from, pt);
+					return enclosingInstance.calculator.Distance(enclosingInstance.from, ptX[doc], ptY[doc]);
 				}
 				return 0;
 			}

Modified: incubator/lucene.net/trunk/test/contrib/Spatial/Contrib.Spatial.Test.csproj
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/test/contrib/Spatial/Contrib.Spatial.Test.csproj?rev=1375247&r1=1375246&r2=1375247&view=diff
==============================================================================
--- incubator/lucene.net/trunk/test/contrib/Spatial/Contrib.Spatial.Test.csproj (original)
+++ incubator/lucene.net/trunk/test/contrib/Spatial/Contrib.Spatial.Test.csproj Mon Aug 20
21:45:16 2012
@@ -120,7 +120,6 @@
     </Compile>
     <Compile Include="Prefix\BaseRecursivePrefixTreeStrategyTestCase.cs" />
     <Compile Include="Prefix\TestRecursivePrefixTreeStrategy.cs" />
-    <Compile Include="Prefix\TestSpatialPrefixField.cs" />
     <Compile Include="Prefix\TestTermQueryPrefixGridStrategy.cs" />
     <Compile Include="Prefix\Tree\SpatialPrefixTreeTest.cs" />
     <Compile Include="Properties\AssemblyInfo.cs" />



Mime
View raw message