Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/index.php/Reporting_Bug_Guidelines

Do NOT report bugs when a package is just outdated, or it is in Unsupported. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#26383 - {archweb} Add "exact match" option to package search

Attached to Project: Arch Linux
Opened by Desmond Cox (pointone) - Monday, 10 October 2011, 22:03 GMT
Last edited by Dan McGee (toofishes) - Sunday, 19 October 2014, 00:23 GMT
Task Type Feature Request
Category Web Sites
Status Closed
Assigned To Dan McGee (toofishes)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 13
Private No

Details

Description:

The package search page currently searches the pkgname and pkgdesc fields using the "icontains" field lookup. This is problematic when searching for certain packages with common "words." For example, "tea" (http://www.archlinux.org/packages/community/i686/tea/).

Query: http://www.archlinux.org/packages/?q=tea

The query matches ins*tea*d and *tea*m in package descriptions, among other things.

Please consider including an "exact match" option (which is already provided by the AUR search interface) to show only those packages which match the pkgname field exactly.

Relevant code: http://projects.archlinux.org/archweb.git/tree/packages/views.py#n226

Potential solution (from a Django novice):

if form.cleaned_data['q']:
query = form.cleaned_data['q']
q = Q(pkgname__icontains=query) | Q(pkgdesc__icontains=query)
packages = packages.filter(q)
elif form.cleaned_data['x']:
query_x = form.cleaned_data['x']
x = Q(pkgname__iexact=query_x)
packages = packages.filter(x)

Please see https://wiki.archlinux.org/index.php/Help_talk:Style#Package_installation for additional information and rationale regarding this feature request. In short, we would like to create a wiki template that links to exact match package search results rather than directly linking to the i686/x86_64 version or PKGBUILD.
This task depends upon

Closed by  Dan McGee (toofishes)
Sunday, 19 October 2014, 00:23 GMT
Reason for closing:  Won't implement
Additional comments about closing:  See  FS#30773  for implementation.
Comment by Dan McGee (toofishes) - Thursday, 13 October 2011, 22:44 GMT
  • Field changed: Summary ([archweb] Add "exact match" option to package search → {archweb} Add "exact match" option to package search)
  • Field changed: Status (Unconfirmed → Assigned)
  • Task assigned to Dan McGee (toofishes)
For starters, a hidden search option: http://www.archlinux.org/packages/?name=tea

Loading...