Index: lucene/CHANGES.txt IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- lucene/CHANGES.txt (revision 1418008) +++ lucene/CHANGES.txt (revision ) @@ -74,7 +74,12 @@ re-index is not done, then an indexed point is ~1/2 the smallest grid cell larger and as such is slightly more likely to match a query shape. (David Smiley) - + +* LUCENE-4594: Spatial PrefixTreeStrategy no longer indexes center points of + non-point shapes. If you want to call makeDistanceValueSource() based on + shape centers, you need to do this yourself in another spatial field. + (David Smiley) + New Features * LUCENE-4226: New experimental StoredFieldsFormat that compresses chunks of @@ -218,6 +223,13 @@ documents with shapes near a query shape were erroneously considered a match. In addition, it wasn't possible to index a shape representing the entire globe. + +* LUCENE-4594: Spatial PrefixTreeStrategy would index center-points in addition + to the shape to index if it was non-point, in the same field. But sometimes + the center-point isn't actually in the shape (consider a LineString), and for + highly precise shapes it could cause makeDistanceValueSource's cache to load + parts of the shape's boundary erroneously too. So center points aren't + indexed any more; you should use another spatial field. (David Smiley) Optimizations Index: lucene/spatial/src/java/org/apache/lucene/spatial/prefix/PrefixTreeStrategy.java IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- lucene/spatial/src/java/org/apache/lucene/spatial/prefix/PrefixTreeStrategy.java (revision 1417996) +++ lucene/spatial/src/java/org/apache/lucene/spatial/prefix/PrefixTreeStrategy.java (revision ) @@ -45,7 +45,7 @@ *

Characteristics:

*