Module
GeoShapeQuery
GeoShapeQuery ( )
A Query 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 | boost(boost) | Sets the boost value for documents matching the Query . |
Object | field(f) | Sets the field to query against. |
Object | indexedShape(indexedShape) | Sets the indexed shape. Use this if you already have shape definitions already indexed. |
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. |
String | toJSON() | Retrieves the internal query object. This is typically used by
internal API functions so use with caution. |
Method Detail
boost
Object boost ( boost )
Sets the boost value for documents matching the Query .
|
field
Object field ( f )
Sets the field to query against.
|
indexedShape
Object indexedShape ( indexedShape )
Sets the indexed shape. Use this if you already have shape definitions
already indexed.
|
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.
|
toJSON
String toJSON ( )
Retrieves the internal query object. This is typically used by
internal API functions so use with caution.
|