Lucene.Net  3.0.3
Lucene.Net is a port of the Lucene search engine library, written in C# and targeted at .NET runtime users.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Pages
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
Lucene.Net.Spatial.Vector.PointVectorStrategy Class Reference

Simple SpatialStrategy which represents Points in two numeric DoubleFields. More...

Inherits SpatialStrategy.

Public Member Functions

 PointVectorStrategy (SpatialContext ctx, String fieldNamePrefix)
void SetPrecisionStep (int p)
string GetFieldNameX ()
string GetFieldNameY ()
override AbstractField[] CreateIndexableFields (Shape shape)
AbstractField[] CreateIndexableFields (Point point)
override ValueSource MakeDistanceValueSource (Point queryPoint)
override ConstantScoreQuery MakeQuery (SpatialArgs args)
Query MakeQueryDistanceScore (SpatialArgs args)
override Filter MakeFilter (SpatialArgs args)

Public Attributes

int precisionStep = 8

Static Public Attributes

static String SUFFIX_X = "__x"
static String SUFFIX_Y = "__y"

Detailed Description

Simple SpatialStrategy which represents Points in two numeric DoubleFields.

Note, currently only Points can be indexed by this Strategy. At query time, the bounding box of the given Shape is used to create NumericRangeQuerys to efficiently find Points within the Shape.

Due to the simple use of numeric fields, this Strategy provides support for sorting by distance through DistanceValueSource

Definition at line 39 of file PointVectorStrategy.cs.

Constructor & Destructor Documentation

Lucene.Net.Spatial.Vector.PointVectorStrategy.PointVectorStrategy ( SpatialContext  ctx,
String  fieldNamePrefix 

Definition at line 49 of file PointVectorStrategy.cs.

Member Function Documentation

override AbstractField [] Lucene.Net.Spatial.Vector.PointVectorStrategy.CreateIndexableFields ( Shape  shape)

Definition at line 73 of file PointVectorStrategy.cs.

AbstractField [] Lucene.Net.Spatial.Vector.PointVectorStrategy.CreateIndexableFields ( Point  point)

Definition at line 82 of file PointVectorStrategy.cs.

string Lucene.Net.Spatial.Vector.PointVectorStrategy.GetFieldNameX ( )

Definition at line 63 of file PointVectorStrategy.cs.

string Lucene.Net.Spatial.Vector.PointVectorStrategy.GetFieldNameY ( )

Definition at line 68 of file PointVectorStrategy.cs.

override ValueSource Lucene.Net.Spatial.Vector.PointVectorStrategy.MakeDistanceValueSource ( Point  queryPoint)

Definition at line 99 of file PointVectorStrategy.cs.

override Filter Lucene.Net.Spatial.Vector.PointVectorStrategy.MakeFilter ( SpatialArgs  args)

Definition at line 201 of file PointVectorStrategy.cs.

override ConstantScoreQuery Lucene.Net.Spatial.Vector.PointVectorStrategy.MakeQuery ( SpatialArgs  args)

Definition at line 104 of file PointVectorStrategy.cs.

Query Lucene.Net.Spatial.Vector.PointVectorStrategy.MakeQueryDistanceScore ( SpatialArgs  args)

Definition at line 133 of file PointVectorStrategy.cs.

void Lucene.Net.Spatial.Vector.PointVectorStrategy.SetPrecisionStep ( int  p)

Definition at line 56 of file PointVectorStrategy.cs.

Member Data Documentation

int Lucene.Net.Spatial.Vector.PointVectorStrategy.precisionStep = 8

Definition at line 47 of file PointVectorStrategy.cs.

String Lucene.Net.Spatial.Vector.PointVectorStrategy.SUFFIX_X = "__x"

Definition at line 41 of file PointVectorStrategy.cs.

String Lucene.Net.Spatial.Vector.PointVectorStrategy.SUFFIX_Y = "__y"

Definition at line 42 of file PointVectorStrategy.cs.

The documentation for this class was generated from the following file: