lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From synhers...@apache.org
Subject svn commit: r1375262 - in /incubator/lucene.net/trunk/src/contrib/Spatial: BBox/BBoxSimilarityValueSource.cs Prefix/Tree/QuadPrefixTree.cs
Date Mon, 20 Aug 2012 21:53:38 GMT
Author: synhershko
Date: Mon Aug 20 21:53:38 2012
New Revision: 1375262

URL: http://svn.apache.org/viewvc?rev=1375262&view=rev
Log:
Last fixes

Modified:
    incubator/lucene.net/trunk/src/contrib/Spatial/BBox/BBoxSimilarityValueSource.cs
    incubator/lucene.net/trunk/src/contrib/Spatial/Prefix/Tree/QuadPrefixTree.cs

Modified: incubator/lucene.net/trunk/src/contrib/Spatial/BBox/BBoxSimilarityValueSource.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/src/contrib/Spatial/BBox/BBoxSimilarityValueSource.cs?rev=1375262&r1=1375261&r2=1375262&view=diff
==============================================================================
--- incubator/lucene.net/trunk/src/contrib/Spatial/BBox/BBoxSimilarityValueSource.cs (original)
+++ incubator/lucene.net/trunk/src/contrib/Spatial/BBox/BBoxSimilarityValueSource.cs Mon Aug
20 21:53:38 2012
@@ -49,13 +49,13 @@ namespace Lucene.Net.Spatial.BBox
 			{
 				_enclosingInstance = enclosingInstance;
 
-				minX = FieldCache_Fields.DEFAULT.GetDoubles(reader, enclosingInstance.strategy.field_minX,
true);
-				minY = FieldCache_Fields.DEFAULT.GetDoubles(reader, enclosingInstance.strategy.field_minY,
true);
-				maxX = FieldCache_Fields.DEFAULT.GetDoubles(reader, enclosingInstance.strategy.field_maxX,
true);
-				maxY = FieldCache_Fields.DEFAULT.GetDoubles(reader, enclosingInstance.strategy.field_maxY,
true);
+				minX = FieldCache_Fields.DEFAULT.GetDoubles(reader, enclosingInstance.strategy.field_minX/*,
true*/);
+				minY = FieldCache_Fields.DEFAULT.GetDoubles(reader, enclosingInstance.strategy.field_minY/*,
true*/);
+				maxX = FieldCache_Fields.DEFAULT.GetDoubles(reader, enclosingInstance.strategy.field_maxX/*,
true*/);
+				maxY = FieldCache_Fields.DEFAULT.GetDoubles(reader, enclosingInstance.strategy.field_maxY/*,
true*/);
 
-				validMinX = FieldCache_Fields.DEFAULT.GetDoubles(reader, enclosingInstance.strategy.field_minX);
-				validMaxX = FieldCache_Fields.DEFAULT.GetDoubles(reader, enclosingInstance.strategy.field_maxX);
+				validMinX = FieldCache_Fields.DEFAULT.GetDocsWithField(reader, enclosingInstance.strategy.field_minX);
+				validMaxX = FieldCache_Fields.DEFAULT.GetDocsWithField(reader, enclosingInstance.strategy.field_maxX);
 			}
 
 			public override float FloatVal(int doc)

Modified: incubator/lucene.net/trunk/src/contrib/Spatial/Prefix/Tree/QuadPrefixTree.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/src/contrib/Spatial/Prefix/Tree/QuadPrefixTree.cs?rev=1375262&r1=1375261&r2=1375262&view=diff
==============================================================================
--- incubator/lucene.net/trunk/src/contrib/Spatial/Prefix/Tree/QuadPrefixTree.cs (original)
+++ incubator/lucene.net/trunk/src/contrib/Spatial/Prefix/Tree/QuadPrefixTree.cs Mon Aug 20
21:53:38 2012
@@ -17,7 +17,6 @@
 
 using System;
 using System.Collections.Generic;
-using System.Collections.ObjectModel;
 using System.Diagnostics;
 using System.Text;
 using Spatial4n.Core.Context;
@@ -110,18 +109,6 @@ namespace Lucene.Net.Spatial.Prefix.Tree
 
 		}
 
-		//public void PrintInfo() {
-		//  NumberFormat nf = NumberFormat.getNumberInstance();
-		//  nf.setMaximumFractionDigits(5);
-		//  nf.setMinimumFractionDigits(5);
-		//  nf.setMinimumIntegerDigits(3);
-
-		//  for (int i = 0; i < maxLevels; i++) {
-		//    System.out.println(i + "]\t" + nf.format(levelW[i]) + "\t" + nf.format(levelH[i])
+ "\t" +
-		//        levelS[i] + "\t" + (levelS[i] * levelS[i]));
-		//  }
-		//}
-
 		public override int GetLevelForDistance(double dist)
 		{
 			for (int i = 1; i < maxLevels; i++)



Mime
View raw message