Module
GeoShapeFilter
GeoShapeFilter ( )
A Filter to find documents with a geo_shapes matching a specific shape. |
Method Summary
Returns | Name | Description |
---|---|---|
String | _type() | The type of ejs object. For internal use only. |
Object | cache(trueFalse) | Enable or disable caching of the filter |
Object | cacheKey(key) | Sets the cache key. |
Object | field(f) | Sets the field to filter against. |
Object | indexedShape(indexedShape) | Sets the indexed shape. Use this if you already have shape definitions already indexed. |
Object | name(name) | Sets the filter name. |
Object | relation(indexedShape) | Sets the shape relation type. A relationship between a Query Shape and indexed Shapes that will be used to determine if a Document should be matched or not. Valid values are: intersects, disjoint, and within. |
Object | shape(shape) | Sets the shape |
Object | strategy(strategy) | Sets the spatial strategy. Valid values are:
This is an advanced setting, use with care. |
Object | toJSON() | Returns the filter object. |
Method Detail
cache
Object cache ( trueFalse )
Enable or disable caching of the filter
|
cacheKey
Object cacheKey ( key )
Sets the cache key.
|
field
Object field ( f )
Sets the field to filter against.
|
indexedShape
Object indexedShape ( indexedShape )
Sets the indexed shape. Use this if you already have shape definitions
already indexed.
|
name
Object name ( name )
Sets the filter name.
|
relation
Object relation ( indexedShape )
Sets the shape relation type. A relationship between a Query Shape
and indexed Shapes that will be used to determine if a Document
should be matched or not. Valid values are: intersects, disjoint,
and within.
|
shape
Object shape ( shape )
Sets the shape
|
strategy
Object strategy ( strategy )
Sets the spatial strategy. Valid values are:
This is an advanced setting, use with care.
|