Slashdot Mirror


Google Suggest Dissected

sammykrupa writes "Google suggest Javascript code dissected and rewritten for all of you web developers out there. Cool piece of web reverse-engineering!" Joel Spolsky astutely notes that this will raise the bar in terms of how people expect the "internets" to work.

21 of 321 comments (clear)

  1. Google Suggest just isn't very useful by BillsPetMonkey · · Score: 5, Insightful

    Let's think if the way people search for stuff.

    1. Try something specific
    2. Try something less specific

    Number 1. brings up no results on Goggle Suggest, number 2. brings up 523,334 results. Impressive, but how has this helped us search for 1. ?

    Let's try an example, lets look for "C# structs"

    1. Enter "C# structs" - no suggestions.
    2. Enter "structs" - 425,000 results.

    Grrreat.

    --
    "It's not your information. It's information about you" - John Ford, Vice President, Equifax
    1. Re:Google Suggest just isn't very useful by mountain · · Score: 2, Insightful

      PEBKAC

      --
      --- "If a man speaks in a forest, and no woman hears him, is he still wrong?"
    2. Re:Google Suggest just isn't very useful by BillsPetMonkey · · Score: 2, Insightful

      So we should be altering the vocabulary we use so that Google Suggest can understand it?

      Hmmm.

      --
      "It's not your information. It's information about you" - John Ford, Vice President, Equifax
    3. Re:Google Suggest just isn't very useful by Phexro · · Score: 3, Insightful

      Yup, this is one of the terribly irritating thing about google... there is simply no way to search for an exact string which contains non-alphanumeric characters. It strips out most punctuation.

      e.g. search for 'tmp/foo/bar' or 'tmp/foo/bar#baz'. You'll see results for '/tmp/foo.bar', '/tmp/foo/bar', and so forth. What if I'm looking for that exact string? This can be very frustrating when searching for posts about a specific error message, since a page with 'condition foo: bar' will be just as likely to show up as 'foo: bar condition', but they aren't necessarily the same.

  2. Re:Raising What Bar? by LnxAddct · · Score: 2, Insightful

    Raising the bar as in people will expect computers to start intelligently assissting them when the are trying to figure something out. Not Clippy style, I mean assisst you as in being useful. In addition to that, it won't only be expected for native applications but also for web services. The nice thing is, this should ease people into the mentality that its okay for computers to help you.Some people still are freaked out by that.
    Regards,
    Steve

  3. Google suggest isn't useful though by Segosa · · Score: 5, Insightful

    Unfortunately Google Suggest has really no use. If you know what you want to search for, you search for it. Suggesting search terms isn't really going to do anything apart from distract you. Hopefully this technology will be used for other things where it actually IS useful.

    1. Re:Google suggest isn't useful though by spectre_240sx · · Score: 2, Insightful

      Yes, but that means you would have to search on that before recieving feeback on the correct spelling, possibly not getting the right results. Goodgle Suggest speeds up the process and gives you feedback on the spelling immediately, thus lessening the amount of time it takes to do your research.

      Honestly, I don't think Google Suggest is where this is going to stop. This is a nice demonstration that we can have real-time feedback on web pages and applications, but I'm thinking more about the future and how this small idea may change things on a fairly large scale.

    2. Re:Google suggest isn't useful though by Oori · · Score: 2, Insightful

      I respectfully disagree. You write: "if you know what you want to search for, you search for it". This description is obviously adequate for only *one* sort of web searching, which is rather unexploratory.
      But, in many cases search engines are useful in that they allow us to explore knowledge domains we were not aware of. Suggesting potentially related terms enables exactly this sort of searching.
      Don't think of it as search for information you already know you want. Think of it as being exposed to information you are not aware of yet (I, e.g., don't underestimate my own ignorance).

      Here's an example, an undergrad student is searching for "belief revision". He finished clicking belief, and "belief net" pops up from google. Sounds related. Great, he makes a mental note to check it out, and is introduced to belief revision models based on Bayesian Reasoning.

      TO sum, I find the suggestion box helpful, and would think it would be even more helpful if suggestions were based on terms exctracted from a semantically-related thesauri (e.g., Wordnet) rather than being just lexically related.

  4. Interesting & nifty, but little else by BristolCream · · Score: 3, Insightful

    While I'm very impressed with the javascipting behind this and indeed the speed of return from Google's network, I really don't see why it is being treated as revolutionary.

    It could potentually save a user some time, but could equally slow down their search by confusing with a multitude of options.

  5. Re:Beware by kuzb · · Score: 2, Insightful

    Yes, I'm aware of it. The problem with it is, if you start using massive arrays in javascript then the client's box slows to a crawl. There are a few tricks you can use to speed up this process, but it's impossible to tell what kind of hardware they have, and how much load you can get away with.

    If I were to hazard a guess, I'd say it's probably only good for small (less than 1000 items) search lists.

    --
    BeauHD. Worst editor since kdawson.
  6. I don't agree by mansoft · · Score: 5, Insightful

    What you say might be true for us geeks, but have you ever seen how standard users do web searches? They begin with one-word searches, and if and only if the results don't satisfy them do they refine their search.

    --

    Engage!

  7. Re:This technique exists since a long time ... by pdamoc · · Score: 2, Insightful
    I don't quite understand all the hype about Google Suggests. The technique for doing it exists since at least 2 years on Mozilla (and even longer on IE).
    well.. it is the power behind it that's coursing all the hype. Google IS power because it has a very wide audience. Think about it like this: What would happen if Google would start producing a custom Open Source OS? A LOT of companies have their own Linux or BSD versions and some did succeeded in receiving some public exposure BUT if Google would post a short link on their home saying "Help us finish Google Linux" you can bet that it would make world news and it won't be because some company started yet another linux distribution but because Google did it.
  8. everything you type in is directly send to google by mrmorgana · · Score: 4, Insightful

    That differs from the well known "nothing happens till you hit the send button paradigm". So beware of type in your passwords by accident. They read everything (and turn it to statistics).

  9. A better outlet for this technology... by Anonymous Coward · · Score: 2, Insightful

    Wouldn't Amazon or eBay make more use of this technology? Google will give you results for almost anything, and as such I don't think this technology is as useful as it would be for a more limited (but still massive) database like Amazon or eBay.

  10. Re:A great idea by MikeFM · · Score: 2, Insightful

    Not to say that this isn't useful or cool but I really don't see how this sort of thing is that much of a benefit. It, like most client-side scripting, creates a non-standardized way to do a common task. In this case it might be useful for this ability to be intergrated into the basic protocols but the Javascript version is really nothing more than a bandaid for the ongoing problem that the basic protocols of the web HTML and HTTP really aren't meant to be used to write applications. Rather than creating more and more non-standardized web sites that are a usability nightmare it'd be much better to create some new standards.

    So, as a prototype this rocks. I hope it, and other Javascript, doesn't spread to every site on the planet though. Client-side scripting sucks. :)

    --
    At what price learning? At what cost wisdom? The price is a man's peace of mind, and the cost is his life.
  11. Re:Is it that big a deal? by QuantumG · · Score: 2, Insightful

    Yeah, I think you're really belittling this engineering.. The point is Google is doing all this with a straight-jacket (also known as a web browser) on. It's kinda like minimalist composition. I can imagine that next year some time when The Matrix Online comes out everyone will be saying "yeah, so, it's just kungfu fighting in a game.. the only really it's impressive is because it's a MMORPG, we've had kungfu in video games since Street Fighter." or something equally silly. The point is that twitch games a really really had to do over the wild wild internet (which is why FPS games are SOOO much better on a LAN) and close combat twitch games that involve kungfu style fighting are even harder. If TMO pulls it off I'd expect the same geek response as we've had over Google Suggest, cause it's just a bitch to do with the technology available.

    --
    How we know is more important than what we know.
  12. Great crutch for the pathetic browser by Anonymous Coward · · Score: 2, Insightful

    I view Google Search as a great interface enhancement for the tired browser paradigm.

    Everybody is writing apps to work in the ubiquitous browser. Unfortunately, developers have to jump through many hoops to get browsers to sport friendly interface elements that are already available in the X / Windows / Mac interfaces. The browser was never meant to be an application front-end, but it's being forced upon us developers, costing more time to get a workable product banged out. A compiler and class libs can do so much more.

    Thanks, Google, for adding another element to make people want the pathetic browser as an interface.

    Mod me a troll, but browsers suck as interfaces. And I haven't even touched on printing...

  13. Re:A great idea by SCHecklerX · · Score: 2, Insightful

    I agree. One that really sticks out is all of the javascript dynamic menus. I always thought that by now there would be a tag for this purpose. Seems like a logical tag to add to the specs. I have a use for it, for sure (i'm one of those who also refuses to use javascript for core functionality)

  14. Re:A great idea by los+furtive · · Score: 2, Insightful
    I don't know how this person can be modded as insightful. XMLHttpRequest object may be non-standard W3C DOM, but it is still supported by all the important browsers.

    XMLHttpRequest is a godsend that has been used for RPC in most major clientside toolkits for a while now, but you mainly see it in web apps that you have to pay to use (written a few myself). The fact that Google is using it only validates it's importance.

    And I don't wish to be pedantic but using the term "non-standardized web sites" is rather misleading since you can use XMLHttpRequest and still validate your site against HTML 4.x, XHTML etc...

    Finally, what it boils down to, and like it or not this is the trend of all important web app style sites, is that page refreshes are costly in time, in bandwith, and in difficulty of maintaining state, and using XMLHttpRequest as a method of RPC is the most suitable and appropriate way of resolving these issues, and a hell of a lot cleaner than hidden iframes to boot!

    P.S. Client-side rocks. Further reading here.

    --

    I'm a writer, a poet, a genius, I know it. I don't buy software, I grow it.

  15. People missing point or article - rich web apps by SuperKendall · · Score: 2, Insightful

    Just about all of the highly modded comments seem to be complaining about how Google Suggest is not very useful.

    But that is not what the story is about. The story is really about all the little things that are going on that make a very usable and responsive web interface.

    Others have noted the XMLHTTPRequest object at work. But there are a number of other cool things in there:

    Replacing XMLHTTPRequest with a cookie/frame reloading technique.

    Using javascripts Timeout() handler to initiate server communication, so that fast typers are not penalized with a lot of excess network requests.

    Interesting JavaScript text manipulation (like highlighting).

    Basically, just a lot of little things that show how to make some interesting techniques useful for the widest audience possible. Google Suggest may on the face of it not look like the most useful thing ever, but you have to respect the sheer number of browsers it is designed to work on and the responsiveness of the interface.

    --
    "There is more worth loving than we have strength to love." - Brian Jay Stanley
  16. Re:everything you type in is directly send to goog by ceejayoz · · Score: 2, Insightful

    So beware of type in your passwords by accident. They read everything (and turn it to statistics).

    Somehow, I doubt someone at Google sees the search term "vZ820aa3q" and thinks "oh, that's mrmorgana's Slashdot password"...