Sunday, December 27, 2009

Coding a search engine ?

I'm using a code example to learn to add a search engine in my to search my site. I'm confused with this code :





%26lt;form action=';http://pub25.bravenet.com/search鈥?method=';post'; style=';margin:0px;';%26gt;





what the above code means ? what is the purpose to add the url ';http://pub25.bravenet.com/search2/searc鈥?inside action ?Coding a search engine ?
I don't quite understand what you are asking, given your response to the previous answer, but I'll give this a shot by answering what you asked.





%26gt;%26gt; what the above code means ?





On the Web, data input is handled by forms. The FORM tag includes all the data the user will send to the server for processing.





In this case, you will send the data to the server URL http://pub25.bravenet.com/search2/search鈥?/a> via the POST method.





%26gt;%26gt; what is the purpose to add the url ';http://pub25.bravenet.com/search2/searc鈥?inside action ?





The ACTION attribute of a form specifies the Web page that will actually process the form input. In this case, the URL given will do the actual finding of things and display the results.





If you want to create your own Web site search engine, there are scores of tutorials on the Web.Coding a search engine ?
That is the url of the page that will be processing the form. Without a url in the action tag your form would do nothing.
The form action in your example points to the search script residing on the bravenet server.





To use your own URL, you need to have a search application in your website. The application will include the robot, indexing mechanism, algorithm, search form and search results page.





To implement a search engine, you will need admin permissions on the web server b/c of the software that needs to be installed.





A free search engine that does everything you need and is pretty painless to implement / modify is Thunderstone Webinator.





http://www.thunderstone.com/texis/site/p鈥?/a>





Otherwise, if you can depend on Google for indexing all the pages on your site, you could use the Google Search This Site Form.





HTH - pls post back with other questions if you need additional assistance

No comments:

Post a Comment