LUCENE-4914: SpatialPrefixTree Cell.reset() forgot the 'leaf' flag.

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1465330 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
David Wayne Smiley 2013-04-07 07:03:46 +00:00
parent 2951c6ebf6
commit a22e571189
2 changed files with 6 additions and 0 deletions

View File

@ -225,6 +225,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

View File

@ -91,6 +91,8 @@ public abstract class Cell implements Comparable<Cell> {
if (bytes[b_off + b_len - 1] == LEAF_BYTE) {
b_len--;
setLeaf();
} else {
leaf = false;
}
}