Class PointVectorStrategy
Simple SpatialStrategy which represents Points in two numeric DoubleFields. The Strategy's best feature is decent distance sort.
Characteristics:
- Only indexes points; just one per field value.
- Can query by a rectangle or circle.
- Intersects and IsWithin is supported.
- Uses the FieldCache for MakeDistanceValueSource(IPoint) and for searching with a Circle.
Implementation:
This is a simple Strategy. Search works with NumericRangeQuerys on an x & y pair of fields. A Circle query does the same bbox query but adds a ValueSource filter on MakeDistanceValueSource(IPoint).One performance shortcoming with this strategy is that a scenario involving both a search using a Circle and sort will result in calculations for the spatial distance being done twice -- once for the filter and second for the sort.
@lucene.experimental
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: Lucene.Net.Spatial.dll
Syntax
[Serializable]
public class PointVectorStrategy : SpatialStrategy
Constructors
Name | Description |
---|---|
PointVectorStrategy(SpatialContext, String) |
Fields
Name | Description |
---|---|
SUFFIX_X | |
SUFFIX_Y |
Properties
Name | Description |
---|---|
PrecisionStep |
Methods
Name | Description |
---|---|
CreateIndexableFields(IPoint) | See Lucene.Net.Spatial.Vector.PointVectorStrategy.CreateIndexableFields(Spatial4n.Core.Shapes.IShape) |
MakeDistanceValueSource(IPoint, Double) | |
MakeFilter(SpatialArgs) | |
MakeQuery(SpatialArgs) | |
MakeQueryDistanceScore(SpatialArgs) |