Ranking of search results

I have been trying to find more about the search ranking algorithms. I know about category priority, but does it take other metrics to determine a search result?

It takes a lot of stuff, including heavier weight for title similarity, body similarity and other metrics.

If you are curious feel free to read through search.rb file.