Ticket #10207: querysets.diff
File querysets.diff, 949 bytes (added by , 16 years ago) |
---|
-
docs/ref/models/querysets.txt
1484 1484 A boolean full-text search, taking advantage of full-text indexing. This is 1485 1485 like ``contains`` but is significantly faster due to full-text indexing. 1486 1486 1487 Example:: 1488 1489 Entry.objects.filter(headline__search="+Django -jazz Python") 1490 1491 SQL equivalent:: 1492 1493 SELECT ... WHERE MATCH(tablename, headline) AGAINST (+Django -jazz Python IN BOOLEAN MODE); 1494 1487 1495 Note this is only available in MySQL and requires direct manipulation of the 1488 database to add the full-text index. 1496 database to add the full-text index. By default Django uses BOOLEAN MODE for 1497 full text searches. `Please check MySQL documentation for additional details. <http://dev.mysql.com/doc/refman/5.1/en/fulltext-boolean.html>`_ 1489 1498 1499 1490 1500 regex 1491 1501 ~~~~~ 1492 1502