Hi I wondering how to create a search engine script from scratch. The search engine able to fetch results only from selected websites, utilizing the sites' APIs. Thanks
Do you want to use a pre-existing search engine like sphinx lucene etc ? Or build one of those yourself? If you want to use a pre existing one I suggest sphinx search - has a loads of documentation on how to go about it. I have used it twice in my projects on seanswers.com and workfreely.me
A search engine basically needs to accept sort of search query (for instance, a series of words) & then return web resources that it thinks are related or appropriate to the search query. To decides what is appropriate to the search query can most important. One can use a simple algorithm like counting how many times any of the search words appears on a page. Google Search engine uses sophisticated methods & techniques, including investigating the pages that links in a page.