[Google Searchengine Programming] -



Google Searchengine Programming

Discuss Google Searchengine Programming



Posted by: onauc

Howdy,

I want to know how the google, webcrawler etc. searchengines really work.
I have read around 10 websites, found on google, about “how searchengines work” and not a single one of them make it clear if it is the spider or the index or the search software does the ranking according to it’s ranking algorithm.
All they ever say is that, a searchengine has 3 softwares :
a) the spider
b) the index
c) the search system (search-box, template, etc.)
The spiders crawl the web collecting webpages and then forward them to the index and then the search software searches the index for the sought keywords/phrases.
Also, some say that the spiders copy the whole website into it’s index. So, in other words, there is 2 copies of a website. One residing in the website owner’s webserver and the other residing on the index of the searchengine.
So now, I can only assume 3 possibilities how a searchengine works from all this:

1.
The spider does not do the ranking according to any algorithm.
All it does is visit a website, grab all it’s html codes (copy a website) and then dump the html codes to it’s index.
The Index is nothing but a big txt file (.txt, .html) on the searchengine’s webserver that keeps full copy (html codes) of each website.
The search-system, when searching and finding links (in the index) gives the ranking according to the searchengine’s ranking algorithm.
This means, the spider nor the index is responsible for the ranking because these 2 parts of the searchengine are not taught the ranking algorithm.

OR

2.
The spider does the ranking according to the searchengine’s ranking algorithm.
It visits a website and grabs all it’s html codes (copy a website) and then finally dump the html codes to it’s index. When it dumps the copies of websites it ranks them according to the searchengine’s algorithm.
The Index is nothing but a big txt file (.txt, .html) on the searchengine’s webserver that keeps full copy (html codes) of each website.
The search-system, when searching and finding links (in the index) does not give the ranking according to the searchengine’s ranking algorithm because that has been already done by the spider when dumping the data onto the index.
This means, the spider is responsible for giving the ranking and not the index nor the search-system responsible for the ranking because these 2 parts of the searchengine are not taught the ranking algorithm.

OR

3.
The spider does not do the ranking according to any algorithm.
All it does is visit a website, grab all it’s html codes (copy a website) and then dump the html codes to it’s index.
The Index is not only a big txt file (.txt, .html) on the searchengine’s webserver that keeps full copy (html codes) of each website but also the system that does the ranking.
When it receives data from the spider, it ranks the links in it’s database according to the searchengine’s ranking algorithm.
The search-system, when searching and finding links (in the index) does not give the ranking according to the searchengine’s ranking algorithm.
Frankly, all it does is output a copy of certain parts of the index onto a searcher’s screen.
This means, neither the spider or the search-system is responsible for the ranking because these 2 parts of the searchengine are not taught the ranking algorithm.


So, which assumption is correct according to the 3 above ?



Posted by: jaksback

well, looks like you seem to already know more than most about how search engines work.....wish i knew more to help you



Posted by: intercodes

onauc,

[COLOR=red]AFAIK[/COLOR]

I think the option 1 is the closest one, but not the exact one. The spider crawls the website and only fetches snapshot of some of the pages [not the full website or its html codes as you say]. The google servers recieves this snapshot and is indexed. There are various algorithm , not just search-algorithm. I guess there will be a page ranking algorithm that ranks the webpages based on various factors [ Backlinks, no of clicks ,etc etc ] and reindex the pages.



Posted by: onauc

[QUOTE][i]Originally posted by intercodes [/i]
[B]onauc,

[COLOR=red]AFAIK[/COLOR]

I think the option 1 is the closest one, but not the exact one. The spider crawls the website and only fetches snapshot of some of the pages [not the full website or its html codes as you say]. The google servers recieves this snapshot and is indexed. There are various algorithm , not just search-algorithm. I guess there will be a page ranking algorithm that ranks the webpages based on various factors [ Backlinks, no of clicks ,etc etc ] and reindex the pages. [/B][/QUOTE]

Ah ! But still, which part of the searchengine does the raning ?
Certainly not the spider as it only grabs links and their descriptions and certainly not the index as it is plain simple cache and certainly not the query interface because if the perl/php (rank algorithm code) was residing in the html of the search-=page then people would right mouse click and view the source codes of the ranking algorithm.



Posted by: OIDanTheManIO

What do you plan on doing with this extra knowledge of how search engines work?

-Dan The Man



Posted by: onauc

[QUOTE][i]Originally posted by OIDanTheManIO [/i]
[B]What do you plan on doing with this extra knowledge of how search engines work?

-Dan The Man [/B][/QUOTE]

Intend on creating a spider that will crawl my sponsor's links and then show their products and compare their prices to searchers like you.