Ticket #10207: querysets.diff

File querysets.diff, 949 bytes (added by kgrandis, 15 years ago)

updated patch with proper path

  • docs/ref/models/querysets.txt

     
    14841484A boolean full-text search, taking advantage of full-text indexing. This is
    14851485like ``contains`` but is significantly faster due to full-text indexing.
    14861486
     1487Example::
     1488   
     1489    Entry.objects.filter(headline__search="+Django -jazz Python")
     1490
     1491SQL equivalent::
     1492
     1493    SELECT ... WHERE MATCH(tablename, headline) AGAINST (+Django -jazz Python IN BOOLEAN MODE);
     1494
    14871495Note this is only available in MySQL and requires direct manipulation of the
    1488 database to add the full-text index.
     1496database to add the full-text index. By default Django uses BOOLEAN MODE for
     1497full text searches. `Please check MySQL documentation for additional details. <http://dev.mysql.com/doc/refman/5.1/en/fulltext-boolean.html>`_
    14891498
     1499
    14901500regex
    14911501~~~~~
    14921502
Back to Top