In this part 1, the search engine searches for the occurrence of words in the content. Part 2 is slightly modified such that when we upload the content, the number of occurrences of each word is stored in the link table. The search engine then ranks with the number of occurrences of each word in the document. For example, if the word ‘paging’ occurred 11 times and ‘programs’ occurred 21 times, then the rank for the document is 11 + 12 = 23.
Click on the source code link at the bottom of this page to download all of the PHP scripts to use for constructing your own content search on your web server.
| DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware. |