Hey there,
A client who uses Front Page has asked me if it is possible to set up a keyword search feature for their website so visitors can input a keyword and get a list of all pages where that keyword appears.
The simpliest search engine I saw is enough complicated to implement with PHP, but easy to understand.It's composed of 3 scripts : an indexer, a form for submiting keywords and a script for extracting and viewing the results. I will look into the script and give you the url when you can find it.
I can explain to you later. The comments are in french.
An indexer is a program that seeks all the html files within a directory and put all key words in a database (wich can be a text file). These keywords are pointing to webpages that contain them (sometimes its reverses : entries of the tables are the filepaths and contents are the keywords).
The indexer is launched periodically (e.g. once a day at 03:00 am). It scans all the file content, strip HTML tags and scripts, skips unsignificant words such 'do', 'the', 'with'. It stores the results in the database.
Some indexers just considere the title and META TAG 'keywords', assuming that they exist.
The most simplest way to do it is by registering the site with google, let all pages get indexed. Then you can request google to allow a link (google) in your site with a search within a site link.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.