You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _includes/rest/geopoints.md
+70-1Lines changed: 70 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -81,7 +81,7 @@ result = json.loads(connection.getresponse().read())
81
81
print result
82
82
</code></pre>
83
83
84
-
This will return a list of results ordered by distance from 30.0 latitude and -20.0 longitude. The first result will be the nearest object. (Note that if an explicit `order` parameter is supplied, it will take precedence over the distance ordering.) For example, here are two results returned for the above query:
84
+
This will return a list of results ordered by distance from 30.0 latitude and -20.0 longitude. The first result will be the nearest object. (Note that if an explicit `order` parameter is supplied, it will take precedence over the distance ordering.) For example, here are two results returned for the above query:
85
85
86
86
<pre><codeclass="json">
87
87
{
@@ -208,6 +208,75 @@ result = json.loads(connection.getresponse().read())
208
208
print result
209
209
</code></pre>
210
210
211
+
* Starting with Parse-Server 2.5.0
212
+
213
+
It's also possible to query for the set of objects that are contained within or on the bounds of a polygon. `$polygon` allows for opened or closed paths, minimum of 3 `GeoPoint`'s.
Copy file name to clipboardExpand all lines: _includes/rest/queries.md
+94Lines changed: 94 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -92,6 +92,7 @@ The values of the `where` parameter also support comparisons besides exact match
92
92
| $dontSelect | Requires that a key's value not match a value for a key in the result of a different query |
93
93
| $all | Contains all of the given values |
94
94
| $regex | Requires that a key's value match a regular expression |
95
+
| $text | Performs a full text search on indexed fields |
95
96
96
97
For example, to retrieve scores between 1000 and 3000, including the endpoints, we could issue:
97
98
@@ -556,6 +557,99 @@ The above example will match any `BarbecueSauce` objects where the value in the
556
557
557
558
Queries that have regular expression constraints are very expensive, especially for classes with over 100,000 records. Parse restricts how many such operations can be run on a particular app at any given time.
558
559
560
+
* Starting with Parse-Server 2.5.0
561
+
562
+
For efficient search capabilities use the `$text` operator. By creating indexes on one or more columns your strings are turned into tokens for full text search functionality.
| $language | Determines the list of stop words and the rules for tokenizer. |
570
+
| $caseSensitive | Enable or disable case sensitive search. |
571
+
| $diacriticSensitive | Enable or disable diacritic sensitive search |
572
+
573
+
Please refer to your database documentation on Full Text Search to setup your indexes, weights and limitations.
574
+
575
+
<ahref="https://docs.mongodb.com/v3.2/text-search/">Mongo 3.2 Full Text Search</a>
576
+
577
+
<ahref="https://docs.mongodb.com/manual/reference/operator/query/text/">Mongo 3.4 Full Text Search</a>
578
+
579
+
<ahref="https://www.postgresql.org/docs/9.5/static/textsearch.html">Postgres 9.5 Full Text Search</a>
580
+
581
+
Note: Postgres doesn't support `$caseSensitive` for Full Text Search, please use `$regex` above or create a lowercase column in your DB. Postgres supports `$diacriticSensitive: true` by default but `$diacriticSensitive: false` is not supported. To use false automatically, please install Postgres Unaccent Extension and update your text search configuration.
0 commit comments