Opened 8 years ago

Closed 7 years ago

Last modified 5 years ago

#10207 closed (fixed)

Simple enhancements for Queryset API: Search

Reported by: Seamus <seamus@…> Owned by: Kevin Kubasik
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 8 years ago.
updated patch with proper path

Download all attachments as: .zip

Change History (7)

comment:1 Changed 8 years ago by Jacob

milestone: 1.1
Needs documentation: unset
Needs tests: unset
Patch needs improvement: unset
Triage Stage: UnreviewedAccepted

comment:2 Changed 8 years ago by kgrandis

Owner: changed from nobody to kgrandis

comment:3 Changed 8 years ago by kgrandis

Has patch: set

Changed 8 years ago by kgrandis

Attachment: querysets.diff added

updated patch with proper path

comment:4 Changed 7 years ago by Kevin Kubasik

Keywords: kkmegapatch added
Owner: changed from kgrandis to Kevin Kubasik

comment:5 Changed 7 years ago by Jacob

Resolution: fixed
Status: newclosed

Fixed by [10303].

comment:6 Changed 5 years ago by Jacob

milestone: 1.1

Milestone 1.1 deleted

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