[Tracker-discuss] [issue372] Default search missed matching issue title for "capi"
Ezio Melotti
metatracker at psf.upfronthosting.co.za
Tue Feb 1 17:17:35 CET 2011
Ezio Melotti <ezio.melotti at gmail.com> added the comment:
My guess is that the matching algorithm used in the "title" search is more permissive than the one used for the "All text" search.
For the title search the algorithm seems to be something like:
for term in title_search_query.split():
if term in issue_title: # match
(that's why "urllib/httplib header capitalization" is included in the results),
whereas in the normal search all the text is splitted in order to match whole words only.
The search is handled in http://svn.python.org/view/tracker/roundup-src/roundup/cgi/actions.py?view=markup (in the SearchAction class), but I couldn't find anything useful there.
----------
nosy: +ezio.melotti
priority: urgent -> bug
status: unread -> chatting
_______________________________________________________
PSF Meta Tracker <metatracker at psf.upfronthosting.co.za>
<http://psf.upfronthosting.co.za/roundup/meta/issue372>
_______________________________________________________
More information about the Tracker-discuss
mailing list