Class PointVectorStrategy
Simple SpatialStrategy which represents Points in two numeric DoubleFields.
The Strategy's best feature is decent distance sort.
Characteristics:
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.
This is a Lucene.NET EXPERIMENTAL API, use at your own risk
Inheritance
System.Object
PointVectorStrategy
Assembly: Lucene.Net.Spatial.dll
Syntax
public class PointVectorStrategy : SpatialStrategy
Constructors
|
Improve this Doc
View Source
PointVectorStrategy(SpatialContext, String)
Declaration
public PointVectorStrategy(SpatialContext ctx, string fieldNamePrefix)
Parameters
Type |
Name |
Description |
SpatialContext |
ctx |
|
System.String |
fieldNamePrefix |
|
Fields
|
Improve this Doc
View Source
SUFFIX_X
Declaration
public static string SUFFIX_X
Field Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
SUFFIX_Y
Declaration
public static string SUFFIX_Y
Field Value
Type |
Description |
System.String |
|
Properties
|
Improve this Doc
View Source
PrecisionStep
Declaration
public virtual int PrecisionStep { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
Methods
|
Improve this Doc
View Source
CreateIndexableFields(IPoint)
Declaration
public virtual Field[] CreateIndexableFields(IPoint point)
Parameters
Type |
Name |
Description |
IPoint |
point |
|
Returns
|
Improve this Doc
View Source
CreateIndexableFields(IShape)
Declaration
public override Field[] CreateIndexableFields(IShape shape)
Parameters
Type |
Name |
Description |
IShape |
shape |
|
Returns
Overrides
|
Improve this Doc
View Source
MakeDistanceValueSource(IPoint, Double)
Declaration
public override ValueSource MakeDistanceValueSource(IPoint queryPoint, double multiplier)
Parameters
Type |
Name |
Description |
IPoint |
queryPoint |
|
System.Double |
multiplier |
|
Returns
Overrides
|
Improve this Doc
View Source
MakeFilter(SpatialArgs)
Declaration
public override Filter MakeFilter(SpatialArgs args)
Parameters
Returns
Overrides
|
Improve this Doc
View Source
MakeQuery(SpatialArgs)
Declaration
public override ConstantScoreQuery MakeQuery(SpatialArgs args)
Parameters
Returns
Overrides
|
Improve this Doc
View Source
MakeQueryDistanceScore(SpatialArgs)
Declaration
public virtual Query MakeQueryDistanceScore(SpatialArgs args)
Parameters
Returns