In a continuation of their latest series, PHPBuilder.com has posted part two of their Dynamic Document Search Engine series.
In part 1, the article discussed on document based searches that display result based on number of search words found in each document. This article is an extension that ranks based on number of search words found plus number of occurrence of each search word in the document.
Thankfully, they go the way of having a keyword table for the text that you insert. There are some other methods that can be used with a full-text search, but more often than not, those methods just end up costing you and your users more time. They also give you some sample code to help you search the keywords table, make a "word list" of important words, as well as an interface to tie it all together. Throw in a timer to see how long your searches are taking, and you have a pretty powerful tool that can benefit you and your site's visitors.




