de-construct search app???

Out of context: Reply #1

  • Started
  • Last post
  • 5 Responses
  • 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

View thread