|
Tastes like a Java Applet Search Engine. | |
Many of you may be wondering, why do I have a java applet if the JavaScript is the best thing since sliced bread? Well the answer
is pretty simple actually, many people like the feel of an applet. It has it's advantages, how about I list them for you now:
Second, some people like the look and feel of the applet. The searchTHIS applet is a separate little window that remains open no matter where your visitor goes. It also looks more like an actual application than web page form, and some people like that as well. Third, the applet and code can be easily customized a number of different ways to look and work the way you want it. That is really the best feature I think. You can modify the code without worrying about which Browser or platform your are targeting, and you can customize many of the features right in your html. Pretty darn cool. Sick of reading, wanna try it out, eh? Click here to try out the searchTHIS Java Applet. | |
How it works. | |
| The Indexer will build several files for you. The two that the searchTHIS Applet uses are db.js and db.txt. These files are the indexes that the applet will use to search for words or phrases entered by your web site visitor. When the user types in a phrase and clicks the search button, the applet will search the db.txt file for the words. It will then associate the words with the appropriate link. During this association, it also saves a score of that link based on the number of times the words appear in the html file. Results that are returned are printed out in descending order, the first having the highest score and the last having the lowest score. What this means is that the first item in the list will contain the most occurrences of the words entered by the user, hence it will have the highest relevancy. |