Forgot your password?
typodupeerror
Facebook Software

Facebook Details the Software Engineering Behind Graph Search 41

Posted by Soulskill
from the powered-by-notepad-and-mountain-dew dept.
Nerval's Lobster writes "Facebook's Graph Search, its new and powerful way of searching the social network for all manner of information, has drawn a lot of attention since its January unveiling. Some have praised its innovation; others have wondered openly whether its search abilities will end up threatening Google and LinkedIn. Still more have questioned what it all means for users' privacy—always a touchy subject in conjunction with Facebook. The social network previously revealed how it's adjusting its hardware infrastructure to deal with the spike in traffic that will come from interactions with Graph Search (short answer: the Disaggregated Rack, which will break up hardware resources and scale them independently of one another). Now, in a new blog posting, it's offering a bit more with regard to the software side of things, and how the company repurposed an existing system to solve Graph Search's enormous engineering challenge. Bottom line: Facebook's engineers and executives finally decided on Unicorn, an inverted-index system they'd had in development for quite some time."
This discussion has been archived. No new comments can be posted.

Facebook Details the Software Engineering Behind Graph Search

Comments Filter:
  • by Anonymous Coward on Wednesday March 06, 2013 @04:47PM (#43097673)

    "Facebook's Stalker Search, its new and powerful way of searching the social network for all manner of information about you, has drawn a lot of negative attention since its January unveiling. Few have praised its innovation; fewer have wondered openly whether its search abilities will end up threatening Google and LinkedIn. Most have questioned what it all means for users' privacyâ"always a touchy subject in conjunction with Facebook. The social network previously revealed how it's adjusting its hardware infrastructure to deal with the spike in traffic that will come from interactions with Stalker Search (short answer: the Disorganized Rack, which will break up hardware resources and scale them independently of one another). Now, in a new blog posting, it's offering a bit more with regard to the software side of things, and how the company repurposed an existing system to solve Stalker Search's enormous engineering challenge. Bottom line: Facebook's engineers and executives finally decided on Unicorn, a mythical flying horned horse they'd had in the basement for quite some time."

  • by oztiks (921504) on Wednesday March 06, 2013 @05:08PM (#43097901)

    No no, it was a highly complex set of sql queries devised by a highly complex set of mathematical algorithms which took a team of washed up college drop outs to devise. I was able to speak to Mark Zuckkerberg on this matter and he divulged to key areas of the system's source to me.


    $searchquery = 'people who are hipster losers';

    $sqlquery = 'select * from pages p inner join friends f on p.userid=f.friendid where 1'

    mysql_connect("localhost", "leet", "hax0r");
    mysql_select_db("facebook_db");

    $page = mysql_fetch_array($sqlquery);

    if($page['like']>0) {
            if(strpos($page['content'], $searchquery) === true) {
                    echo $page['content'];
            }
    }

Sigmund Freud is alleged to have said that in the last analysis the entire field of psychology may reduce to biological electrochemistry.

Working...