de-construct search app???
- Started
- Last post
- 5 Responses
- Dno
Morning!
does anyone know how the search doofer was created and how they do it - it is very slinky
http://www.de-construct.com/indeā¦
click on search in the menu.
How do they call in the results?
me likes!
- northern0
My guess, is that the data comes from keywords added to every item when entered into the CMS. This'll then be read into flash php/xml stylee and from that i recon a large associative array is made of all the keywords on the site and their relavent links to content. Every time you type a character your are creating a string, of 1, 2, 3 etc characters. Then if you loop through all the items in the associative array and compare your entered string with a substring of each array items name you can work out the matches.. to speed things up you'd at each point create anew temporary array of your results so you're looping through a smaller and smaller array at each key stroke.... Does that work?? D
- gbz0
morning, i made that search, it's using binary trees, similar to how the UNIX command line does tab-completion.
- northern0
Well there you go, straight from the horses mouth... not that you're a horse gbz. Enough of my speculation..
- Dno0
...good work gbz!!! I really like that search - you one clever bunny!
...and cheers to you too Northern ;)
- Neuarmy0
Brilliant. Always been a fan...