Google 搜索的未来

2012-02-24 15:32


Google曾经承认:她并不会总是懂你。如果在搜索栏中输入“the 10 deepestlakes in the U.S”(美国最深的10个湖)时,她将优先向你展示基于这些单词或者词组权重最高的句子和网站,Google的同事和其高级副总裁Amit Singhal说Google不明白那是一个问题。我们能做的只有交叉双手然后祈祷有个家伙曾经在网上写过一些关于这个问题的文章或者话题。

(function($){ $(window).load(function() { // 顶部固顶菜单高度 affix_topmenu = 35; // 可见窗口的高度 window_height = $(window).height(); // 文章内插图及注释 var max_width = $("#article_content").width(); var imgp = $("#article_content P IMG").parent("P"); imgp.each(function(){ $(this).addClass("article_img"); // 如果有图片描述 var desc = $(this).next("P"); var img = $(this).children("IMG"); if (desc.contents().length == 1 && desc.contents().first().is("em") ) { desc.addClass("article_img_desc"); desc_txt = desc.contents().first().text(); img.attr({"title":desc_txt,"alt":desc_txt}); } else { var desc_txt = img.attr("title") || img.attr("alt"); if (desc_txt != '' && typeof desc_txt != 'undefined') { $(this).after("

" + desc_txt + "

"); var desc = $(this).next("P"); desc.addClass("article_img_desc"); } } var max_width = $("#article_content").width() - 60; if (img.attr("width") > max_width) { img.attr("width",''); img.attr("height",''); img.css("cursor","pointer"); img.click(function(){window.open(img.attr("src"));}); } else if (img.width() > max_width) { img.css("height",parseInt(img.height() * (max_width / img.attr("width")))); img.css("width",max_width); img.css("cursor","pointer"); img.click(function(){window.open(img.attr("src"));}); } }); var re_sitelink = /^https?:\/\/(www.)?linux(.net)?.cn\//i; var footer_links = ''; var i = 0; $("#article_content a").map(function(){ if ($(this).attr('href') == undefined) { $(this).css({'visibility':'hidden'}); } if (re_sitelink.test($(this).attr('href'))) { if ($(this).text() == 'Linux中国') $(this).attr('href',$(location).attr('href')); } else { $(this).addClass("ext").attr({"rel":"external nofollow","target":"_blank"}); } if ($(this).text().substr(0,4).toLowerCase() != 'http' && $(this).attr('href') && $(this).attr('href').substr(0,1) != '#') { if ($(this).parent("ruby").length > 0) { $(this).parent("ruby").after("[" + (++i) + "]" ); } else { $(this).after("[" + (++i) + "]" ); } footer_links += "[" + i + "]: " + $(this).attr('href') + "
"; } }); if (strlen(footer_links)) { $("#article_content").append("
"); } }); // 视频 $("video").map(function() { var src = $(this).children("source").attr("src"); $(this).wrap("
").parent().empty() .append("此处应有视频,地址: " + src + ""); }); $("#pr_qrcode").empty().qrcode({ render: 'canvas', ecLevel: 'H', minVersion: 1, fill: '#000', background: '#FFF', text: 'https://linux.cn/article-341-1.html' + '?pr', size: 100, radius: 0, quiet: 0, mode: 0}); $('#switchwidth').click(function(){ $('.pr .mn').toggleClass('autowidth'); $(this).toggleClass('switchedwidth'); }); $('body').keydown(function(){ if (event.keyCode == 27) { location.href = 'https://linux.cn/article-341-1.html'; } else if (event.keyCode == 9) { $('#switchwidth').click(); return false; } }); $('#weixin_style').click(function(){ $("#article_content h1").wrapInner("

"); $("#article_content h2").wrapInner("

"); $("#article_content h3").wrapInner("

"); $("#article_content h4").wrapInner("

"); $("#article_content h5").wrapInner("

"); $("#article_content h6").wrapInner("

"); $("#article_content :header p").unwrap(); }); })(jQuery);