added ordering support for text queries

This commit is contained in:
Wilson Júnior
2014-07-08 08:38:41 -03:00
parent 89825a2b21
commit 30c01089f5
3 changed files with 32 additions and 1 deletions

View File

@@ -43,5 +43,7 @@ Next, start a text search using :attr:`QuerySet.search_text` method::
document.title # may be: "MongoEngine 0.9 released"
Ordering by text score
======================
objects = News.objects.search('mongo').order_by('$text_score')