Message 211506 - Python tracker

Message211506

Author ezio.melotti
Recipients Ramchandra Apte, asvetlov, docs@python, eric.araujo, ezio.melotti, georg.brandl, r.david.murray, skrah, terry.reedy
Date 2014-02-18.10:11:09
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1392718269.91.0.0106855094067.issue15871@psf.upfronthosting.co.za>
In-reply-to
Content
This seems to have been fixed/improved already.
A search for "random" now returns the random module as first result and random.random as second.
Searching for "print" returns the pprint module first, and then the print function.
With "str" or "list" the results are a bit worse, with the builtin function in 6th and 4th position respectively.
Searching for keywords (e.g. "with") still doesn't give useful results.

The code now uses something similar to what I suggested in the previous message (if ((fullname == object) || (fullname.split('.').pop() == object)) {...}) and a scoring system.  It might still need some tweaking to get better results with "str" and "list" and for keywords, but it's already much better.

Terry, given these improvements, do you still think that using the index is better?  Are there still searches that don't return the desired results?
History
Date User Action Args
2014-02-18 10:11:09ezio.melottisetrecipients: + ezio.melotti, georg.brandl, terry.reedy, eric.araujo, r.david.murray, asvetlov, skrah, docs@python, Ramchandra Apte
2014-02-18 10:11:09ezio.melottisetmessageid: <1392718269.91.0.0106855094067.issue15871@psf.upfronthosting.co.za>
2014-02-18 10:11:09ezio.melottilinkissue15871 messages
2014-02-18 10:11:09ezio.melotticreate