Opened 6 years ago

Closed 6 years ago

Last modified 4 years ago

#10207 closed (fixed)

Simple enhancements for Queryset API: Search

Reported by: Seamus <seamus@…> Owned by: kkubasik
Component: Documentation Version: 1.0
Severity: Keywords: kkmegapatch
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

http://docs.djangoproject.com/en/dev/ref/models/querysets/#search

I would recommend two simple additions to the search documentation:

  1. Add an example
  2. Add a link to MySQL information regarding the database changes

A boolean full-text search, taking advantage of full-text indexing. This is like contains but is significantly faster due to full-text indexing.

Entry.objects.filter(headline__search="Django")

Note this is only available in MySQL and requires direct manipulation of the database to add the full-text index.

Attachments (1)

querysets.diff (949 bytes) - added by kgrandis 6 years ago.
updated patch with proper path

Download all attachments as: .zip

Change History (7)

comment:1 Changed 6 years ago by jacob

  • milestone set to 1.1
  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Accepted

comment:2 Changed 6 years ago by kgrandis

  • Owner changed from nobody to kgrandis

comment:3 Changed 6 years ago by kgrandis

  • Has patch set

Changed 6 years ago by kgrandis

updated patch with proper path

comment:4 Changed 6 years ago by kkubasik

  • Keywords kkmegapatch added
  • Owner changed from kgrandis to kkubasik

comment:5 Changed 6 years ago by jacob

  • Resolution set to fixed
  • Status changed from new to closed

Fixed by [10303].

comment:6 Changed 4 years ago by jacob

  • milestone 1.1 deleted

Milestone 1.1 deleted

Note: See TracTickets for help on using tickets.
Back to Top