Skip to content

Commit 624280a

Browse files
committed
Fixed api doc
1 parent 06d448e commit 624280a

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

lib/search.js

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,16 @@
44
var _ = AV._;
55

66
/**
7-
* A builder to generate sort string for app searching.
7+
* A builder to generate sort string for app searching.For example:
8+
* <pre><code>
9+
* var builder = new AV.SearchSortBuilder();
10+
* builder.ascending('key1').descending('key2','max');
11+
* var query = new AV.SearchQuery('Player');
12+
* query.sortBy(builder);
13+
* query.find().then ...
14+
* </code></pre>
815
* @class
16+
* @since 0.5.1
917
*/
1018
AV.SearchSortBuilder = function() {
1119
this._sortFields = [];
@@ -99,13 +107,13 @@
99107
* });
100108
*
101109
* </code></pre>
102-
* Visite <a href='https://leancloud.cn/docs/app_search_guide.html>App Searching Guide</a>
110+
* Visite <a href='https://leancloud.cn/docs/app_search_guide.html'>App Searching Guide</a>
103111
* for more details.
104112
* @class
105113
* @since 0.5.1
106114
*
107115
*/
108-
AV.SearchQuery = AV.Query._extend(/** @lends AV.InboxQuery.prototype */{
116+
AV.SearchQuery = AV.Query._extend(/** @lends AV.SearchQuery.prototype */{
109117
_sid: null,
110118
_hits: 0,
111119
_queryString: null,

0 commit comments

Comments
 (0)