What does a search engine algorithm look like, and where can I find examples to build from?
* Okapi BM25 for determining the relevance of a result to a query.
* TF-IDF for determining the relevance of a term to a document.
* PageRank for ranking domains.