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
Afficher le fichier Open project: apache/lucenenet Class Usage Examples

Méthodes publiques

Méthode 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 méthode

public CreateIndexableFields ( IShape shape ) : Lucene.Net.Documents.Field[]
shape IShape
Résultat Lucene.Net.Documents.Field[]

MakeDistanceValueSource() public méthode

public MakeDistanceValueSource ( IPoint queryPoint, double multiplier ) : ValueSource
queryPoint IPoint
multiplier double
Résultat ValueSource

MakeFilter() public méthode

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
Résultat Lucene.Net.Search.Filter

MakeQuery() public méthode

public MakeQuery ( SpatialArgs args ) : ConstantScoreQuery
args Lucene.Net.Spatial.Queries.SpatialArgs
Résultat Lucene.Net.Search.ConstantScoreQuery

MakeShapeValueSource() public méthode

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

SerializedDVStrategy() public méthode

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