Updated text-indexes.rst

The search statement under the `Ordering by text score` section uses `search` on the QuerySet object instead of `search_text` and thus raised an `AttributeError`

AttributeError: 'QuerySet' object has no attribute 'search'
This commit is contained in:
Emmanuel Nosa Evbuomwan 2018-04-29 17:32:03 +01:00 committed by GitHub
parent 2121387aa2
commit faca8512c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -48,4 +48,4 @@ Ordering by text score
::
objects = News.objects.search('mongo').order_by('$text_score')
objects = News.objects.search_text('mongo').order_by('$text_score')