You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ds...@apache.org on 2013/04/07 09:05:59 UTC

svn commit: r1465333 - in /lucene/dev/branches/branch_4x: ./ lucene/ lucene/CHANGES.txt lucene/spatial/ lucene/spatial/src/java/org/apache/lucene/spatial/prefix/tree/Cell.java

Author: dsmiley
Date: Sun Apr  7 07:05:58 2013
New Revision: 1465333

URL: http://svn.apache.org/r1465333
Log:
LUCENE-4914: SpatialPrefixTree Cell.reset() forgot the leaf flag.

Modified:
    lucene/dev/branches/branch_4x/   (props changed)
    lucene/dev/branches/branch_4x/lucene/   (props changed)
    lucene/dev/branches/branch_4x/lucene/CHANGES.txt   (contents, props changed)
    lucene/dev/branches/branch_4x/lucene/spatial/   (props changed)
    lucene/dev/branches/branch_4x/lucene/spatial/src/java/org/apache/lucene/spatial/prefix/tree/Cell.java

Modified: lucene/dev/branches/branch_4x/lucene/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_4x/lucene/CHANGES.txt?rev=1465333&r1=1465332&r2=1465333&view=diff
==============================================================================
--- lucene/dev/branches/branch_4x/lucene/CHANGES.txt (original)
+++ lucene/dev/branches/branch_4x/lucene/CHANGES.txt Sun Apr  7 07:05:58 2013
@@ -198,6 +198,10 @@ Bug Fixes
 * LUCENE-4877: Throw exception for invalid arguments in analysis factories.
   (Steve Rowe, Uwe Schindler, Robert Muir)
 
+* LUCENE-4914: SpatialPrefixTree's Node/Cell.reset() forgot to reset the 'leaf'
+  flag.  It affects SpatialRecursivePrefixTreeStrategy on non-point indexed
+  shapes, as of Lucene 4.2. (David Smiley)
+
 Documentation
 
 * LUCENE-4841: Added example SimpleSortedSetFacetsExample to show how

Modified: lucene/dev/branches/branch_4x/lucene/spatial/src/java/org/apache/lucene/spatial/prefix/tree/Cell.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_4x/lucene/spatial/src/java/org/apache/lucene/spatial/prefix/tree/Cell.java?rev=1465333&r1=1465332&r2=1465333&view=diff
==============================================================================
--- lucene/dev/branches/branch_4x/lucene/spatial/src/java/org/apache/lucene/spatial/prefix/tree/Cell.java (original)
+++ lucene/dev/branches/branch_4x/lucene/spatial/src/java/org/apache/lucene/spatial/prefix/tree/Cell.java Sun Apr  7 07:05:58 2013
@@ -91,6 +91,8 @@ public abstract class Cell implements Co
     if (bytes[b_off + b_len - 1] == LEAF_BYTE) {
       b_len--;
       setLeaf();
+    } else {
+      leaf = false;
     }
   }