C# Class Lucene.Net.Spatial.Serialized.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 Prefix.RecursivePrefixTreeStrategy) to add precision or eventually make more specific / advanced calculations on the per-document geometry. The serialization uses Spatial4j's BinaryCodec. @lucene.experimental
Inheritance: SpatialStrategy
显示文件 Open project: apache/lucenenet Class Usage Examples

Public Methods

Method Description
CreateIndexableFields ( IShape shape ) : Lucene.Net.Documents.Field[]
MakeDistanceValueSource ( IPoint queryPoint, double multiplier ) : ValueSource
MakeFilter ( SpatialArgs args ) : Filter

Returns a Filter that should be used with FilteredQuery.QUERY_FIRST_FILTER_STRATEGY. Use in another manner is likely to result in an NotSupportedException to prevent misuse because the filter can't efficiently work via iteration.

MakeQuery ( SpatialArgs args ) : ConstantScoreQuery
MakeShapeValueSource ( ) : ValueSource

Provides access to each shape per document as a ValueSource in which FunctionValues.ObjectVal(int) returns a IShape.

SerializedDVStrategy ( SpatialContext ctx, string fieldName ) : Lucene.Net.Documents

Constructs the spatial strategy with its mandatory arguments.

Method Details

CreateIndexableFields() public method

public CreateIndexableFields ( IShape shape ) : Lucene.Net.Documents.Field[]
shape IShape
return Lucene.Net.Documents.Field[]

MakeDistanceValueSource() public method

public MakeDistanceValueSource ( IPoint queryPoint, double multiplier ) : ValueSource
queryPoint IPoint
multiplier double
return ValueSource

MakeFilter() public method

Returns a Filter that should be used with FilteredQuery.QUERY_FIRST_FILTER_STRATEGY. Use in another manner is likely to result in an NotSupportedException to prevent misuse because the filter can't efficiently work via iteration.
public MakeFilter ( SpatialArgs args ) : Filter
args Lucene.Net.Spatial.Queries.SpatialArgs
return Lucene.Net.Search.Filter

MakeQuery() public method

public MakeQuery ( SpatialArgs args ) : ConstantScoreQuery
args Lucene.Net.Spatial.Queries.SpatialArgs
return Lucene.Net.Search.ConstantScoreQuery

MakeShapeValueSource() public method

Provides access to each shape per document as a ValueSource in which FunctionValues.ObjectVal(int) returns a IShape.
public MakeShapeValueSource ( ) : ValueSource
return ValueSource

SerializedDVStrategy() public method

Constructs the spatial strategy with its mandatory arguments.
public SerializedDVStrategy ( SpatialContext ctx, string fieldName ) : Lucene.Net.Documents
ctx Spatial4n.Core.Context.SpatialContext
fieldName string
return Lucene.Net.Documents