File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed
Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change 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 = [ ] ;
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 ,
You can’t perform that action at this time.
0 commit comments