1
0
Fork 0

fix sortedness documentation

This commit is contained in:
Jan Steemann 2016-09-27 09:15:15 +02:00
parent 40083d6019
commit 40dbed7a19
1 changed files with 13 additions and 13 deletions

View File

@ -12,13 +12,13 @@ with an error.
`NEAR(coll, latitude, longitude, limit, distanceName) → docArray` `NEAR(coll, latitude, longitude, limit, distanceName) → docArray`
Return at most *limit* documents from collection *coll* that are near *latitude* Return at most *limit* documents from collection *coll* that are near *latitude*
and *longitude*. The result contains at most *limit* documents, returned in and *longitude*. The result contains at most *limit* documents, returned sorted by
any order. If more than *limit* documents qualify, it is undefined which of the qualifying distance, with closest distances being returned first. If more than *limit* documents
documents are returned. Optionally, the distances between the specified coordinate qualify, it is undefined which of the qualifying documents are returned. Optionally,
(*latitude* and *longitude*) and the document coordinates can be returned as well. the distances between the specified coordinate (*latitude* and *longitude*) and the
To make use of that, the desired attribute name for the distance result has to be specified document coordinates can be returned as well. To make use of that, the desired attribute
in the *distanceName* argument. The result documents will contain the distance value in name for the distance result has to be specified in the *distanceName* argument. The
an attribute of that name. result documents will contain the distance value in an attribute of that name.
- **coll** (collection): a collection - **coll** (collection): a collection
- **latitude** (number): the latitude portion of the search coordinate - **latitude** (number): the latitude portion of the search coordinate
@ -35,12 +35,12 @@ an attribute of that name.
`WITHIN(coll, latitude, longitude, radius, distanceName) → docArray` `WITHIN(coll, latitude, longitude, radius, distanceName) → docArray`
Return all documents from collection *coll* that are within a radius of *radius* Return all documents from collection *coll* that are within a radius of *radius*
around the specified coordinate (*latitude* and *longitude*). The order in which the around the specified coordinate (*latitude* and *longitude*). The documents returned
result documents are returned is undefined. Optionally, the distance between the are sorted by distance to the search coordinate, with the closest distances being
search coordinate and the document coordinates can be returned as well. To make use returned first. Optionally, the distance between the search coordinate and the document
of that, an attribute name for the distance result has to be specified in coordinates can be returned as well. To make use of that, an attribute name for the distance
the *distanceName* argument. The result documents will contain the distance value in result has to be specified in the *distanceName* argument. The result documents will contain
an attribute of that name. the distance value in an attribute of that name.
- **coll** (collection): a collection - **coll** (collection): a collection
- **latitude** (number): the latitude portion of the search coordinate - **latitude** (number): the latitude portion of the search coordinate