PDA

View Full Version : Resolved text result - vary in size



ggalan
06-10-2011, 05:14 PM
does anyone know what this is called and how to do it?
the larger text shows greater relevance
http://www.2020proj.com/media/images/other/textResult.JPG

djr33
06-10-2011, 07:29 PM
There are probably two parts to the script. (I can't be certain since it's interactive, but I'm guessing from the image.)

The first is a dynamic search that searches as you type. Google "search as you type" for more information. It's also similar to autofill searching, but that's a little different because it's not generating text in the text field, but below it. Still, it's similar.


The second is what appears below the search. It's called a tag cloud and there are many versions. Some look more like "clouds" and others, like above, look more like regular lists. Size is usually related to relevance. There's lots of info if you search for "tag cloud" on google.

The basic explanation for how this works is that you have a database in which different terms are related to other terms. For example, for each term you have a list of related terms, and maybe how related they are. Then you search for any terms related to the user input and display them. Of course the algorithms can be more complex.