Index: lucene/CHANGES.txt IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- lucene/CHANGES.txt (revision 1465326) +++ lucene/CHANGES.txt (revision ) @@ -225,6 +225,10 @@ * 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 Index: lucene/spatial/src/java/org/apache/lucene/spatial/prefix/tree/Cell.java IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- lucene/spatial/src/java/org/apache/lucene/spatial/prefix/tree/Cell.java (revision 1465326) +++ lucene/spatial/src/java/org/apache/lucene/spatial/prefix/tree/Cell.java (revision ) @@ -91,6 +91,8 @@ if (bytes[b_off + b_len - 1] == LEAF_BYTE) { b_len--; setLeaf(); + } else { + leaf = false; } }