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 Spatial4n.Core.IO.BinaryCodec.
This is a Lucene.NET EXPERIMENTAL API, use at your own risk
Inheritance
System.Object
SerializedDVStrategy
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
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 |
| Spatial4n.Core.Context.SpatialContext |
ctx |
|
| System.String |
fieldName |
|
Methods
|
Improve this Doc
View Source
CreateIndexableFields(IShape)
Declaration
public override Field[] CreateIndexableFields(IShape shape)
Parameters
| Type |
Name |
Description |
| Spatial4n.Core.Shapes.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 |
| Spatial4n.Core.Shapes.IPoint |
queryPoint |
|
| System.Double |
multiplier |
|
Returns
| Type |
Description |
| Lucene.Net.Queries.Function.ValueSource |
|
Overrides
|
Improve this Doc
View Source
MakeFilter(SpatialArgs)
Returns a Lucene.Net.Search.Filter that should be used with QUERY_FIRST_FILTER_STRATEGY.
Use in another manner is likely to result in an System.NotSupportedException
to prevent misuse because the filter can't efficiently work via iteration.
Declaration
public override Filter MakeFilter(SpatialArgs args)
Parameters
Returns
| Type |
Description |
| Lucene.Net.Search.Filter |
|
Overrides
|
Improve this Doc
View Source
MakeQuery(SpatialArgs)
Declaration
public override ConstantScoreQuery MakeQuery(SpatialArgs args)
Parameters
Returns
| Type |
Description |
| Lucene.Net.Search.ConstantScoreQuery |
|
Overrides
|
Improve this Doc
View Source
MakeShapeValueSource()
Provides access to each shape per document as a ValueSource in which
Lucene.Net.Queries.Function.FunctionValues.ObjectVal(System.Int32) returns a Spatial4n.Core.Shapes.IShape.
Declaration
public virtual ValueSource MakeShapeValueSource()
Returns
| Type |
Description |
| Lucene.Net.Queries.Function.ValueSource |
|