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:
		
				
					committed by
					
						 GitHub
						GitHub
					
				
			
			
				
	
			
			
			
						parent
						
							2121387aa2
						
					
				
				
					commit
					faca8512c5
				
			| @@ -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') | ||||
|   | ||||
		Reference in New Issue
	
	Block a user