lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From synhers...@apache.org
Subject svn commit: r1375242 - in /incubator/lucene.net/trunk: src/contrib/Spatial/Prefix/PrefixTreeStrategy.cs test-files/spatial/data/simple-bbox.txt test-files/spatial/simple-Queries-BBox.txt
Date Mon, 20 Aug 2012 21:42:11 GMT
Author: synhershko
Date: Mon Aug 20 21:42:11 2012
New Revision: 1375242

URL: http://svn.apache.org/viewvc?rev=1375242&view=rev
Log:
LUCENE-4175 - adding bbox strategy

Source files added already, this commit adds test-files. Actual tests will be ported in the
end.

Added:
    incubator/lucene.net/trunk/test-files/spatial/data/simple-bbox.txt
    incubator/lucene.net/trunk/test-files/spatial/simple-Queries-BBox.txt
Modified:
    incubator/lucene.net/trunk/src/contrib/Spatial/Prefix/PrefixTreeStrategy.cs

Modified: incubator/lucene.net/trunk/src/contrib/Spatial/Prefix/PrefixTreeStrategy.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/src/contrib/Spatial/Prefix/PrefixTreeStrategy.cs?rev=1375242&r1=1375241&r2=1375242&view=diff
==============================================================================
--- incubator/lucene.net/trunk/src/contrib/Spatial/Prefix/PrefixTreeStrategy.cs (original)
+++ incubator/lucene.net/trunk/src/contrib/Spatial/Prefix/PrefixTreeStrategy.cs Mon Aug 20
21:42:11 2012
@@ -73,6 +73,9 @@ namespace Lucene.Net.Spatial.Prefix
 				cells.Add(grid.GetNodes(ctr, grid.GetMaxLevels(), false)[0]);
 			}
 
+			//TODO is CellTokenStream supposed to be re-used somehow? see Uwe's comments:
+			//  http://code.google.com/p/lucene-spatial-playground/issues/detail?id=4
+
 			var fname = fieldInfo.GetFieldName();
 			if (store)
 			{

Added: incubator/lucene.net/trunk/test-files/spatial/data/simple-bbox.txt
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/test-files/spatial/data/simple-bbox.txt?rev=1375242&view=auto
==============================================================================
--- incubator/lucene.net/trunk/test-files/spatial/data/simple-bbox.txt (added)
+++ incubator/lucene.net/trunk/test-files/spatial/data/simple-bbox.txt Mon Aug 20 21:42:11
2012
@@ -0,0 +1,5 @@
+#id	name	shape	
+C5	CenterAt5	-5 -5 5 5
+C10	CenterAt10	-10 -10 10 10
+NW15	NorthWest	15 15 20 20
+

Added: incubator/lucene.net/trunk/test-files/spatial/simple-Queries-BBox.txt
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/test-files/spatial/simple-Queries-BBox.txt?rev=1375242&view=auto
==============================================================================
--- incubator/lucene.net/trunk/test-files/spatial/simple-Queries-BBox.txt (added)
+++ incubator/lucene.net/trunk/test-files/spatial/simple-Queries-BBox.txt Mon Aug 20 21:42:11
2012
@@ -0,0 +1,13 @@
+C5 @ IsWithin(-6 -6 6 6)
+C5 @ BBoxWithin(-6 -6 6 6)
+C10 @ Contains(-6 -6 6 6)
+C10 @ IsEqualTo(-10 -10 10 10)
+C5 C10 @ Intersects(-2 -2 2 2)
+C5 C10 @ Overlaps(-2 -2 2 2)
+C5 C10 @ BBoxIntersects(-2 -2 2 2)
+NW15 @ IsDisjointTo(-10 -10 10 10)
+
+
+
+
+



Mime
View raw message