Свойство | Тип | Описание | |
---|---|---|---|
ctx |
Метод | Описание | |
---|---|---|
CreateIndexableFields ( IShape shape ) : Lucene.Net.Documents.Field[] |
Returns the IndexableField(s) from the shape that are to be added to the Document. These fields are expected to be marked as indexed and not stored. Note: If you want to store the shape as a string for retrieval in search results, you could add it like this:
|
|
MakeDistanceValueSource ( IPoint queryPoint ) : ValueSource |
See MakeDistanceValueSource(IPoint, double) called with a multiplier of 1.0 (i.e. units of degrees).
|
|
MakeDistanceValueSource ( IPoint queryPoint, double multiplier ) : ValueSource |
Make a ValueSource returning the distance between the center of the indexed shape and queryPoint. If there are multiple indexed shapes then the closest one is chosen. The result is multiplied by multiplier, which conveniently is used to get the desired units.
|
|
MakeFilter ( |
Make a Filter based principally on SpatialOperation and IShape from the supplied args.
|
|
MakeQuery ( |
Make a Query based principally on SpatialOperation and IShape from the supplied args. The default implementation is
|
|
MakeRecipDistanceValueSource ( IShape queryShape ) : ValueSource |
Returns a ValueSource with values ranging from 1 to 0, depending inversely on the distance from MakeDistanceValueSource(IPoint). The formula is
|
|
ToString ( ) : string |
Метод | Описание | |
---|---|---|
SpatialStrategy ( |
Constructs the spatial strategy with its mandatory arguments.
|
public abstract CreateIndexableFields ( IShape shape ) : Lucene.Net.Documents.Field[] | ||
shape | IShape | |
Результат | Lucene.Net.Documents.Field[] |
public MakeDistanceValueSource ( IPoint queryPoint ) : ValueSource | ||
queryPoint | IPoint | |
Результат | ValueSource |
public abstract MakeDistanceValueSource ( IPoint queryPoint, double multiplier ) : ValueSource | ||
queryPoint | IPoint | |
multiplier | double | |
Результат | ValueSource |
public abstract MakeFilter ( |
||
args | ||
Результат |
public MakeQuery ( |
||
args | ||
Результат |
public MakeRecipDistanceValueSource ( IShape queryShape ) : ValueSource | ||
queryShape | IShape | |
Результат | ValueSource |
protected SpatialStrategy ( |
||
ctx | ||
fieldName | string | |
Результат | Lucene.Net.Documents |