[racket-dev] Potential search improvement

2012-05-29 Thread Eli Barzilay
I have made a possibly useful improvement to the JS search code. It's not pushed, yet, but I dropped the revised JS code on the pre-built pages so you can try it out here: http://pre.racket-lang.org/docs/html/search/ and compare searches with the usual page:

Re: [racket-dev] Potential search improvement

2012-05-29 Thread Sam Tobin-Hochstadt
On Tue, May 29, 2012 at 7:17 AM, Eli Barzilay e...@barzilay.org wrote: ** More about the change (especially if you want to try to improve   things): This is not real ranking, but it should give better results overall. The thing is that the search assigns a small integer score for each term,

Re: [racket-dev] Potential search improvement

2012-05-29 Thread Eli Barzilay
Just now, Sam Tobin-Hochstadt wrote: On Tue, May 29, 2012 at 7:17 AM, Eli Barzilay e...@barzilay.org wrote: ** More about the change (especially if you want to try to improve   things): This is not real ranking, but it should give better results overall. The thing is that the search

Re: [racket-dev] Potential search improvement

2012-05-29 Thread Neil Van Dyke
Eli Barzilay wrote at 05/29/2012 07:17 AM: I have made a possibly useful improvement to the JS search code. It's not pushed, yet, but I dropped the revised JS code on the pre-built pages so you can try it out here: http://pre.racket-lang.org/docs/html/search/ [...] Eli, looks like a

Re: [racket-dev] Potential search improvement

2012-05-29 Thread Eli Barzilay
A few minutes ago, Neil Van Dyke wrote: Eli Barzilay wrote at 05/29/2012 07:17 AM: I have made a possibly useful improvement to the JS search code. It's not pushed, yet, but I dropped the revised JS code on the pre-built pages so you can try it out here:

Re: [racket-dev] Potential search improvement

2012-05-29 Thread Sam Tobin-Hochstadt
On Tue, May 29, 2012 at 7:33 AM, Eli Barzilay e...@barzilay.org wrote: That can currently get to ~20k things to sort and adjust for additional entries that get added on each release, planet packages, etc. Have you measured how long this takes? On my machine, the `sort()` method on an array of

Re: [racket-dev] Potential search improvement

2012-05-29 Thread Eli Barzilay
20 minutes ago, Sam Tobin-Hochstadt wrote: On Tue, May 29, 2012 at 7:33 AM, Eli Barzilay e...@barzilay.org wrote: That can currently get to ~20k things to sort and adjust for additional entries that get added on each release, planet packages, etc. Have you measured how long this takes?

Re: [racket-dev] Potential search improvement

2012-05-29 Thread Sam Tobin-Hochstadt
On Tue, May 29, 2012 at 8:16 AM, Eli Barzilay e...@barzilay.org wrote: 20 minutes ago, Sam Tobin-Hochstadt wrote: On Tue, May 29, 2012 at 7:33 AM, Eli Barzilay e...@barzilay.org wrote: That can currently get to ~20k things to sort and adjust for additional entries that get added on each

Re: [racket-dev] Potential search improvement

2012-05-29 Thread Jens Axel Søgaard
2012/5/29 Eli Barzilay e...@barzilay.org: I have made a possibly useful improvement to the JS search code. It's not pushed, yet, but I dropped the revised JS code on the pre-built pages so you can try it out here:  http://pre.racket-lang.org/docs/html/search/ and compare searches with the

Re: [racket-dev] Potential search improvement

2012-05-29 Thread Sam Tobin-Hochstadt
On Tue, May 29, 2012 at 7:33 AM, Eli Barzilay e...@barzilay.org wrote: Just now, Sam Tobin-Hochstadt wrote: On Tue, May 29, 2012 at 7:17 AM, Eli Barzilay e...@barzilay.org wrote: ** More about the change (especially if you want to try to improve   things): This is not real ranking, but

Re: [racket-dev] Potential search improvement

2012-05-29 Thread Eli Barzilay
An hour and a half ago, Sam Tobin-Hochstadt wrote: On Tue, May 29, 2012 at 8:16 AM, Eli Barzilay e...@barzilay.org wrote: 20 minutes ago, Sam Tobin-Hochstadt wrote: On Tue, May 29, 2012 at 7:33 AM, Eli Barzilay e...@barzilay.org wrote: That can currently get to ~20k things to sort and

Re: [racket-dev] Potential search improvement

2012-05-29 Thread Justin Zamora
The search still doesn't find words in function descriptions. For example, http://pre.racket-lang.org/docs/html/search/index.html?q=sine returns no results. This is especially frustrating since the very first exercise in HTDP 1e is to use the search to find out whether DrRacket has a sine

Re: [racket-dev] Potential search improvement

2012-05-29 Thread Eli Barzilay
Just now, Justin Zamora wrote: The search still doesn't find words in function descriptions. [It's not a full-text search, and as long as it's required to run on client machines (needed to run on your local copy), it's unlikely to become a full-text search.] -- ((lambda (x) (x x))

Re: [racket-dev] Potential search improvement

2012-05-29 Thread Matthias Felleisen
On May 29, 2012, at 10:18 AM, Justin Zamora wrote: This is especially frustrating since the very first exercise in HTDP 1e is to use the search to find out whether DrRacket has a sine function. (It is okay for students to guess that sometimes they may have to search for a slightly

Re: [racket-dev] Potential search improvement

2012-05-29 Thread Eli Barzilay
20 minutes ago, Eli Barzilay wrote: An hour and a half ago, Sam Tobin-Hochstadt wrote: To stop the sort in the middle, use a custom comparison function, a bit of state, and an exception. This might work. I was confused. It does work, but it's not enough to be able to throw an

Re: [racket-dev] Potential search improvement

2012-05-29 Thread Matthias Felleisen
On May 29, 2012, at 10:25 AM, Eli Barzilay wrote: 20 minutes ago, Eli Barzilay wrote: An hour and a half ago, Sam Tobin-Hochstadt wrote: To stop the sort in the middle, use a custom comparison function, a bit of state, and an exception. This might work. I was confused. It does work,

[racket-dev] No threads = CPS (was: Potential search improvement)

2012-05-29 Thread Eli Barzilay
Just now, Matthias Felleisen wrote: On May 29, 2012, at 10:25 AM, Eli Barzilay wrote: 20 minutes ago, Eli Barzilay wrote: An hour and a half ago, Sam Tobin-Hochstadt wrote: To stop the sort in the middle, use a custom comparison function, a bit of state, and an exception. This

Re: [racket-dev] Potential search improvement

2012-05-29 Thread Sam Tobin-Hochstadt
On Tue, May 29, 2012 at 10:25 AM, Eli Barzilay e...@barzilay.org wrote: 20 minutes ago, Eli Barzilay wrote: An hour and a half ago, Sam Tobin-Hochstadt wrote: To stop the sort in the middle, use a custom comparison function, a bit of state, and an exception. This might work. I was

Re: [racket-dev] Potential search improvement

2012-05-29 Thread Eli Barzilay
Four hours ago, Eli Barzilay wrote: A few minutes ago, Neil Van Dyke wrote: Eli Barzilay wrote at 05/29/2012 07:17 AM: I have made a possibly useful improvement to the JS search code. It's not pushed, yet, but I dropped the revised JS code on the pre-built pages so you can try it out

Re: [racket-dev] Potential search improvement

2012-05-29 Thread Eli Barzilay
Three hours ago, Sam Tobin-Hochstadt wrote: On Tue, May 29, 2012 at 7:33 AM, Eli Barzilay e...@barzilay.org wrote: Just now, Sam Tobin-Hochstadt wrote: I think you probably want to rank/divide '1' here based on how much of the identifier is matched by the search.  For example, if you

Re: [racket-dev] Potential search improvement

2012-05-29 Thread Sam Tobin-Hochstadt
On Tue, May 29, 2012 at 11:53 AM, Eli Barzilay e...@barzilay.org wrote: Three hours ago, Sam Tobin-Hochstadt wrote: On Tue, May 29, 2012 at 7:33 AM, Eli Barzilay e...@barzilay.org wrote: Just now, Sam Tobin-Hochstadt wrote: I think you probably want to rank/divide '1' here based on how

Re: [racket-dev] Potential search improvement

2012-05-29 Thread Stephen Bloch
On May 29, 2012, at 11:53 AM, Eli Barzilay wrote: Three hours ago, Sam Tobin-Hochstadt wrote: On Tue, May 29, 2012 at 7:33 AM, Eli Barzilay e...@barzilay.org wrote: Just now, Sam Tobin-Hochstadt wrote: I think you probably want to rank/divide '1' here based on how much of the identifier is

Re: [racket-dev] Potential search improvement

2012-05-29 Thread Michael Wilber
I just noticed something about the way I use search. Just now, I wanted to find the reference docs that describe threads. So I typed thread into the search box and got documentation about the (thread ...) form, in both the old and new search pages. But the reference describes Threads, not