Class SerializedDVStrategy
A SpatialStrategy based on serializing a Shape stored into BinaryDocValues.
This is not at all fast; it's designed to be used in conjuction with another index based
SpatialStrategy that is approximated(like RecursivePrefixTreeStrategy)
to add precision or eventually make more specific / advanced calculations on the per-document
geometry.
The serialization uses Spatial4j's .
This is a Lucene.NET EXPERIMENTAL API, use at your own risk
Inheritance
System.Object
SerializedDVStrategy
Assembly: Lucene.Net.Spatial.dll
Syntax
public class SerializedDVStrategy : SpatialStrategy
Constructors
|
Improve this Doc
View Source
SerializedDVStrategy(SpatialContext, String)
Constructs the spatial strategy with its mandatory arguments.
Declaration
public SerializedDVStrategy(SpatialContext ctx, string fieldName)
Parameters
Type |
Name |
Description |
SpatialContext |
ctx |
|
System.String |
fieldName |
|
Methods
|
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)
Returns a Filter that should be used with QUERY_FIRST_FILTER_STRATEGY.
Use in another manner is likely to result in an
to prevent misuse because the filter can't efficiently work via iteration.
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
MakeShapeValueSource()
Provides access to each shape per document as a ValueSource in which
ObjectVal(Int32) returns a .
Declaration
public virtual ValueSource MakeShapeValueSource()
Returns