Author JonathansCorner.com
Recipients JonathansCorner.com, georg.brandl
Date 2009-05-14.18:59:59
SpamBayes Score 3.79228e-09
Marked as misclassified No
Message-id <1242327602.66.0.211164377671.issue6023@psf.upfronthosting.co.za>
In-reply-to
Content
The search function on docs.python.org does not intelligently search the
library for a query in the form "module.function". For instance, in
searching for information on (say) socket.bind(), neither a search query
of "socket.bind()" nor "socket.bind" finds any results. I need to search
for "socket bind" / "bind socket" to get results (or possibly "socket"
or "bind" alone to get a larger number of less focused results.) This is
particularly interesting as the page I am interested in contains the
string "socket.bind" and in fact the snippet that appears on the search
result page for the #1 match is: "...onnection, and *address* is the
address bound to the socket on the other end of the connection. ..
method:: socket.bind(address) Bind the socket to *address*. The socket
must not already be bound. (The format of *address* depen..."

It would be nice if searches for module.function, module.CONSTANT,
module.object, module.object.function, etc. would work for search terms
as objects are named in the API.

(A much easier, if imperfect approximation, would be to treat \W as
breaking words as spaces are treated now, so that e.g. periods in
queries would be internally treated as spaces and a search for
"socket.bind" would be treated as "socket bind" and possibly get
surprisingly good results; see
http://docs.python.org/search.html?q=socket+bind .)

Jonathan
http://JonathansCorner.com/
History
Date User Action Args
2009-05-14 19:00:03JonathansCorner.comsetrecipients: + JonathansCorner.com, georg.brandl
2009-05-14 19:00:02JonathansCorner.comsetmessageid: <1242327602.66.0.211164377671.issue6023@psf.upfronthosting.co.za>
2009-05-14 19:00:01JonathansCorner.comlinkissue6023 messages
2009-05-14 18:59:59JonathansCorner.comcreate