fullTextRanking order

33 views
Skip to first unread message

Karel-Jan Van Haute

unread,
Nov 21, 2014, 6:07:35 AM11/21/14
to mobile-c...@googlegroups.com

The docs of fullTextRanking says the following:

If YES (the default) the full-text query result rows will be sorted by (approximate) relevance. If set to NO, the rows will be returned in the order the documents were added to the database, i.e. essentially unordered; this is somewhat faster, so it can be useful if you don't care about the ordering of the rows.

But is there a way to order results alphabetically with fullTextQuery? 

Jens Alfke

unread,
Nov 21, 2014, 11:56:19 AM11/21/14
to mobile-c...@googlegroups.com

> On Nov 21, 2014, at 3:07 AM, Karel-Jan Van Haute <kare...@gmail.com> wrote:
>
> But is there a way to order results alphabetically with fullTextQuery?

In 1.0.3 you can use the CBLQuery.sortDescriptors property to do this.

—Jens
Reply all
Reply to author
Forward
0 new messages