Slashdot Mirror


Understanding Search Engines?

An anonymous reader asks: "I guess by now we can be fairly certain that search engines are here to stay, and hence I'm trying to understand how the technology works. I'm not so much looking for a particular 'best' technology or implementation, but rather an overview of the different approaches and their trade-offs. Something that would teach me: which approach works in a distributed vs a centralized infrastructure; how different algorithms will perform on complete search words vs arbitrary sub-strings; or how mass storage (hard disk vs. solid state) affects implementation choices. For most mature technologies there is a host of 'overview' books and papers for my questions -- but I couldn't find anything on search engines. Where should I look? Are there any good books or papers?"

49 comments

  1. Start off by reading up aboutPage Rank by xmas2003 · · Score: 4, Informative
    Google has a summary here ... but start with the original Brin and Page paper - The Anatomy of a Large-Scale Hypertextual Web Search Engine.

    Same basic concepts apply today ... although they probably didn't anticipate the rise of Black Hat SEO which attempts to "beat" the algorithms.

    --
    Hulk SMASH Celiac Disease
    1. Re:Start off by reading up aboutPage Rank by Anonymous Coward · · Score: 0

      Black hat bat's vs. the white hat shotgun dude, what a joke.
      As someone who along with a dozen others used to shoot at bat's that flew out of a rural local church belfrey at least once a week one summer I can tell you the black hat bat's are laughing. I've only seen one bat come tumbling out of the sky. It's damned near impossible to kill a bat with a shotgun or even a dozen shotguns.

    2. Re:Start off by reading up aboutPage Rank by Anonymous Coward · · Score: 0

      Matt Cutts gives another explanation of how Google crawls, indexes and ranks webpages.

  2. Learn math by 2.7182 · · Score: 4, Insightful

    SIAM Review had a survey article on different methods recently. You need to know linear algebra, combinatorics and probability

    1. Re:Learn math by SgtChaireBourne · · Score: 1

      IANAM (I am not a mathematician) but I recall the terms 'set theory' and 'boundary theory' being used by mathematics researchers when they were talking about search engines and ranking / grouping the results.

      --
      Beta is broken and the link to classic doesn't work. Stop wasting our time or there won't be anybody left here.
  3. Google founder's links to publications by zoeblade · · Score: 5, Informative

    One of the founders of Google still has links to various publications (in PostScript format) about search engines, if that helps.

  4. Class by addaon · · Score: 2, Insightful

    Take a class on information retrieval from your local university.

    --

    I've had this sig for three days.
  5. Easy Start by MikeFM · · Score: 3, Informative

    Try the web. I have a short intro to search engines on my website. Many others exist. The basics aren't hard and are very effective.

    --
    At what price learning? At what cost wisdom? The price is a man's peace of mind, and the cost is his life.
    1. Re:Easy Start by RedWizzard · · Score: 1
      I have a short intro to search engines on my website.
      That's an introduction to search engine optimization, not an introduction to search engine technology. The submitter seems to be interested in the technology and algorithms behind finding pages that match a particular term, not finding out how to maximize the position of their website in indexes.
    2. Re:Easy Start by MikeFM · · Score: 1

      Good point although I think you can infer the one from the other. I actually am fairly good at SEO and a lot of that is due simply to understanding how the Internet and search engines work. I've always had a thing for studying ways of indexing and searching data as well as things like AI so it's not as mysterious a field for me as it is for a lot of people.

      --
      At what price learning? At what cost wisdom? The price is a man's peace of mind, and the cost is his life.
    3. Re:Easy Start by RedWizzard · · Score: 1
      Good point although I think you can infer the one from the other. I actually am fairly good at SEO and a lot of that is due simply to understanding how the Internet and search engines work. I've always had a thing for studying ways of indexing and searching data as well as things like AI so it's not as mysterious a field for me as it is for a lot of people.
      SEO can give you an insight into how particular search engines order the results they return. But it doesn't give you any idea how those search engines produce the list in the first place, and that is what I think the submitter was interested in. Stuff like how to structure your database, how to distribute it across a cluster, how to index it, how to query it for keywords or substrings or whatever. There doesn't seem to be much of that sort of technical detail in any of the SEO stuff I've seen (I admit I'm no sort of expert in SEO, not even a client, but I have read a bit).
    4. Re:Easy Start by MikeFM · · Score: 1

      I was thinking more along methods of indexing data and search algorithms etc. As for what kind of db to use and stuff I guess really that depends on what kind of search you're trying to do. A normal db is good enough for many problems but not good at many other problems. Is sort of like asking what makes a good program.

      --
      At what price learning? At what cost wisdom? The price is a man's peace of mind, and the cost is his life.
  6. Managing Gigabytes by cariaso1 · · Score: 5, Informative

    Managing Gigbytes author site Amazon

    is a spectacular book on most of the underlying technologies. Although I've only read the first edition, I don't recall it talking about spidering/webcrawling. Instead it starts with building a simple index, and builds through all the refinements (ie stemming, etc) until you've built a serious workhorse for mining text documents. Its definitely at the core of what a search engine does,

    1. Re:Managing Gigabytes by Anonymous Coward · · Score: 0

      Agreed. I studied this book when at Texas A&M studying Information Storage & Retrieval Systems. The book covers a *lot*, but it's all still relevant, and gives a great look at how search engines work.

      For a very simplified introduction, check out this article by Matt Cutts for the librarian newsletter (side note: consider just how much a librarian and a search engine are alike ...)

  7. One interesting (and perhaps unexpected) place by Snarfangel · · Score: 3, Interesting

    Look up voting methods, with keywords like Kemeny, Condorcet, and Borda. A lot of search engine algorithms are like vote aggregation methods, where each site "votes" for other sites it has links to. There is quite a bit of stuff on spam page filtering and the like as well.

    --
    This tagline is copyrighted material. Please send $10 for an affordable replacement.
  8. Comment removed by account_deleted · · Score: 3, Interesting

    Comment removed based on user account deletion

  9. Re:Related Question: by Denyer · · Score: 2, Informative

    Write in the language of the users you expect to use your site, and look at the server logs to see what terms people were using when they found your site.

    If you sell poultry medication, for example, there's no point in only labelling products as being for cockerels if your visitors are more likely to use rooster as a keyword. You might also want to refrain from putting "cock pills" in your meta tags...

    Other than that, write semantically valid code (header tags, etc) and don't put large blocks of navigation links first in a document -- you want search engines to concentrate more on the unique content of a page.

    All common sense stuff, really.

    --
    Ph-nglui mglw'nafh Gates M'dna wgah'nagl fhtagn.
  10. Understanding Slashdot. by LiquidCoooled · · Score: 1, Offtopic

    From the link I just clicked on I saw:

    Ask Slashdot: Understanding Search Engines? 8 of 7 comments

    It took a second glance to notice the subtle error in the wording.
    Bug in slash?

    --
    liqbase :: faster than paper
    1. Re:Understanding Slashdot. by Galactic+Dominator · · Score: 0

      That's just /. giving 110% as always...

      --
      brandelf -t FreeBSD /brain
    2. Re:Understanding Slashdot. by VGPowerlord · · Score: 1

      This is why you should use ACID compliant database tables, rather than MyISAM^W non-ACID compliant database tables.

      --
      GLaDOS for President 2016! "Well here we are again. It's always such a pleasure." -- GLaDOS, 2011
  11. page rank explained by Anonymous Coward · · Score: 0
  12. Re:Don't Reinvent The Wheel by jlarocco · · Score: 1
    Not to sound reproachful, but don't reinvent the wheel.

    If you need a search tool, look around for a solution that someone else has already wasted years of their life on rather than have yourself do the same. Why recode, when you can download?

    If the question was "I need to create a search engine for work, where should I start?" your answer would have been good advice. But the poster made no reference at all to creating his/her own search engine. Specifically: "...hence I'm trying to understand how the technology works." Even if the purpose is to create a search engine, your answer is still useless. Reinventing the wheel is a great way to learn.

    Or perhaps you can explain how buying a search "solution" would teach him how a search engine works?

  13. Search Engines are Mature? by Crutcher · · Score: 1

    Well hell, guess everybody can go home. Nothing more to search for here, it is all figured out.

    --

    -- Crutcher --
    #include <disclaimer.h>
  14. Foul Deeds... by EMeta · · Score: 1

    That Google summary is useful, but is actually just a simplified version of their true ways.

  15. Look at Open Source projects by X · · Score: 5, Informative

    So, aside from reading books on Information Retrieval and Data Mining, the other easily available reference are open source search engines. In particular, look at the Nutch project, which is actually a pretty high quality search engine implementation. Even better: start contributing to the project.

    --
    sigs are a waste of space
    1. Re:Look at Open Source projects by wan-fu · · Score: 1

      I'd recommend taking a look at Lucene as well.

    2. Re:Look at Open Source projects by X · · Score: 1

      Nutch is written by the Lucene guys. Lucene really isn't designed to be a full fledged search engine. It's more like a site indexer.

      --
      sigs are a waste of space
  16. Re:Related Question: by Gord · · Score: 1

    Although meta tags are largely thought to be a waste of time these days (from a search engine p.o.v.) you might still consider using "description". This is used by 'Google' and probably others to replace the snipet of your page with an actual description.

    It depends on what you want to achive tho. GameSpy always uses "GameSpy is the most complete source for [insert game here] trailers, screenshots, cheats, walkthroughs, release dates, previews, reviews, ..." for every game it covers even when it's clearly not 'the most complete source', which just becomes annoying.

    If you choose relevent descriptions that are are representative of your page they can be useful, although sometimes actually seeing the search word in the context that it appears in the page is better. See what your search results look like at the moment and if you don't like the summary you see in Google think about using the "description" tag.

  17. some info... by Pavel+Stratil · · Score: 3, Informative

    If you really want to go behind the theory, you will want to start here. But be prepared to have some really good skills in math, statistics, computer sciences and system administration to understand the articles as they are not intended for general public.

    A brief intro of how classical search engines work goes as follows:
    Grabbing: A crawler visits pages which it considers important, downloads them and parses them
    Analysing: The document receives an identification string and is stored in a reversed index, which is simply a database table with culomns such as "word", "document", "possition", "importance". The "word" culomn is indexed and used for searching.
    Searching: Say that you search for the phrase "ask slashdot". The search engine searches the lines with the terms "ask" and "slashdot", looks into the "document" cell and selects only those documents that both terms occure in. Then it looks into the "possition" cell which carries all the possitions of the searched word in each document and discards all the documents that do not have successive "ask" and "slashdot" terms possitions. The resulting documents are then sorted according to the importance cells of the searched terms.

    This is how basically all search engine works. The only major difference is usually only in the math used to compute the imprtance. There are also some major optimisations done to speed up the responses. To discuss this would take too long. So if you have any questions feel free to ask. Currently I am part of a team developing a large scale search engine, so you have a chance to get some hot info here :)

  18. Re:Don't Reinvent The Wheel by TTK+Ciar · · Score: 1

    If you need a search tool, look around for a solution that someone else has already wasted years of their life on rather than have yourself do the same. Why recode, when you can download?

    I have never in my professional life run into a nontrivial production business application which was perfect. They all have bugs. They all need more work. So it doesn't matter whether he downloads an open source system, or inherits his employer's legacy system -- he will need to learn the principles behind the technology in order to move that system forward.

    -- TTK

  19. Search engine watch by MassOutput · · Score: 1

    There is a website dedicated to search engines

    --
    Somewhere in all of the brain farts, lies a rosy bouquet.
  20. I'm not so sure... by wbren · · Score: 1
    I guess by now we can be fairly certain that search engines are here to stay...
    I'm not so sure I agree with you. What do people really search for nowadays (OK, other than "sex"/"porn")? I know where to go for my news, weather, sports, tech news, political discussion, coding tips, dining reviews, etc. The last time I *really* searched for something was a couple months back. I search within websites quite often, but I do not use large search engines like Google, Yahoo!, MSN, etc. more than a few times a year. Maybe I'm in the minority, but do search engines really have a long future ahead of them?
    --
    -William Brendel
    1. Re:I'm not so sure... by steppin_razor_LA · · Score: 1

      I use google thoughtout the day every day for my job. Then again, I'm doing web development for a living...

      --
      Evolution: love it or leave it
    2. Re:I'm not so sure... by wbren · · Score: 1

      Well yeah, in that case you would use it quite often :-)

      I was talking more about the average Joe looking for sports scores or news. I think most people know where to go for their information, and search engines are just a last resort when they absolutely can't find what they need on the sites they know. I think Ruppert Murdoc said something to that effect. Although I think Murdoc is wrong about nearly everything else, I have to agree with him on that small point.

      --
      -William Brendel
  21. HEY! by Anonymous Coward · · Score: 0

    Why don't you "search" for one? LOL..... ok, bad joke

  22. Google are lying by VJ42 · · Score: 1

    They tell the truth here: http://www.google.com/technology/pigeonrank.html Yep, PigeonRank(TM) is the way forward ;)

    --
    If I have nothing to hide, you have no reason to search me
  23. Re:Related Question: by Flwyd · · Score: 2, Insightful

    Look at your page with Lynx.

    Web crawlers can't see the text in your images and weird HTML constructions can make it hard to parse the text back out. If your page content can be clearly expressed in plain text there's a good chance a search engine will know what you're talking about.

    As an added bonus, if a web crawler can read your pages so can blind users.

    --
    Ceci n'est pas une signature.
  24. Mining the Web by dubl-u · · Score: 1

    I found Mining the Web useful. It's written by academics, so you'll have to put in a little brain work translating it into implementable patterns, but it gave me a good jump start when I took on a new client that does a lot of crawling and searching.

  25. Mozdex by mparaz · · Score: 1

    To see Nutch in action... Mozdex

  26. v7ndotcom elursrebmem Search Engine Competition by mparaz · · Score: 1

    You might want to study "v7ndotcom elursrebmem" - the latest Search Engine competition. Just type it in your favorite search engine. If you enter it in Google, you'd even get strange ads.

    Some are joining to get prizes from the competition, like v7ndotcom elursrebmem: Blogging for Charity

  27. Web Search for a Planet: The Google Cluster Arch.. by adpowers · · Score: 1

    You might want to check out the paper Web Search for a Planet: The Google Cluster Architecture. It is 4-5 generations old, but provides some interesting information about Google's previous cluster setup.

  28. there is less info than you might think by dumbfounder · · Score: 1

    There are a lot of papers on the underlying theories, but there is very little out there that will actually tell you how and when to implement them. Pagerank has really nothing to do with building a search engine, it is just one measurement that goes into determining relevancy. And it isn't applied the way most people think. I would say the best book on search engines is "mining the web" by Soumen Chakrabarti, but it doesn't really talk about implementations. But that's why information retrieval experts get paid the big bucks.

  29. Re:Related Question: by Anonymous Coward · · Score: 0

    Read through Brett's 26 Steps to 1k per day. Great set of advice. And, the WebmasterWorld forum itself is quite a resource. Lots of experts in a lot of areas.

  30. Search Technology Resources by GBRD · · Score: 1

    For print resources I would suggest:

    Understanding Search Engines by Michael Berry and Murray Browne

    as well as

    Modern Information Retrieval by Ricardo Baeza-Yates and Berthier Ribeiro-Neto

    For online resources I would of course direct you to the work of our Search Focus R&D Group

  31. How to solve any technical problem made easy ..... by Gorshkov · · Score: 1

    it doesn't matter whether he downloads an open source system, or inherits his employer's legacy system -- he will need to learn the principles behind the technology in order to move that system forward.

    There are 3 basic approaches to solving any technical problem. Let's say, for the sake of argument, you want to cook a roast and have never done it.

    Brute Force & Ignorance
    Get 100 ovens. Stick a roast in each. Set them to all different combinations of time & temperature. When they're all done, sample them all, and go with the one that's given the best result.
    The Scientific Method
    Get a stove, and stick a roast in it. Using temperature probes placed at different depths in the meat, and possibly using some sort of thermal imaging, monitor the cooking process while varying the temperature over time. Make carefull notes and plot your results afterwards, and compute the optimal configuration.
    The Engineering Method
    Ask your mother

    'nuff said