{"id":24688,"date":"2012-05-08T00:00:00","date_gmt":"2012-05-08T00:00:00","guid":{"rendered":"https:\/\/alienroad.com\/google-bilgi-bankasi\/sorting-and-filtering-results-in-custom-search\/"},"modified":"2012-05-08T00:00:00","modified_gmt":"2012-05-08T00:00:00","slug":"sorting-and-filtering-results-in-custom-search","status":"publish","type":"ar_kb","link":"https:\/\/alienroad.com\/google-bilgi-bankasi\/sorting-and-filtering-results-in-custom-search\/","title":{"rendered":"Sorting and Filtering Results in Custom Search"},"content":{"rendered":"<aside class=\"key-point\">It&#8217;s been a while since we published this blog post. Some of the information may be outdated (for example, some images may be missing, and some links may not work anymore).<\/aside>\n<p class=\"gargardate\">Tuesday, May 08, 2012<\/p>\n<p>\n  <i><br \/>\n    (Cross-posted on the<br \/>\n    <a href=\"https:\/\/googlecustomsearch.blogspot.com\/2012\/05\/sorting-and-filtering-results-in-custom.html\" class=\"external-link\">Custom Search Blog<\/a>)<br \/>\n  <\/i>\n<\/p>\n<p>\n  Using <a href=\"https:\/\/www.google.com\/cse\/\" class=\"external-link\">Custom Search Engine<\/a> (CSE),<br \/>\n  you can create rich search experiences that make it easier for visitors to find the information<br \/>\n  they&#8217;re looking for on your site. Today we&#8217;re announcing two improvements to sorting and filtering<br \/>\n  of search results in CSE.\n<\/p>\n<p>\n  First, CSE now supports UI-based<br \/>\n  <a href=\"https:\/\/support.google.com\/customsearch\/bin\/answer.py?answer=2549537\" class=\"external-link\">results sorting<\/a>,<br \/>\n  which you can enable in the Basics tab of the CSE control panel. Once you&#8217;ve updated the CSE<br \/>\n  element code on your site, a &#8220;sort by&#8221; picker will become visible at the top of the results<br \/>\n  section.\n<\/p>\n<p><img decoding=\"async\" alt=\"New feature in the Custom Search Engine UI for sorting results\" src=\"https:\/\/alienroad.com\/wp-content\/uploads\/kb-gorsel\/g-428d81ca40f9.png\" loading=\"lazy\"><\/p>\n<p>\n  By default CSE supports sorting by date and relevance. In the control panel, you can specify<br \/>\n  additional &#8220;sort by&#8221; keys that are based on the structure of your site&#8217;s content, giving users<br \/>\n  more options to find the results that are most relevant to them. For example, if you&#8217;ve marked up<br \/>\n  pages for <a href=\"https:\/\/alienroad.com\/google-bilgi-bankasi\/introduction-to-product-structured-data\/\">product rich snippets<\/a>, you<br \/>\n  could enable sorting based on price as shown in this screenshot:\n<\/p>\n<p><img decoding=\"async\" alt=\"Sorting is supported by several verticals\" src=\"https:\/\/alienroad.com\/wp-content\/uploads\/kb-gorsel\/g-5e0f2f11a6c2.png\" loading=\"lazy\"><\/p>\n<p>\n  Second, we&#8217;re introducing compact queries for<br \/>\n  <a href=\"https:\/\/developers.google.com\/custom-search\/docs\/structured_search#filter_by_attribute\" class=\"external-link\">filtering by attribute<\/a>.<br \/>\n  Currently you can issue a query like<br \/>\n  <code>[more:pagemap:product-description:search more:pagemap:product-description:engine]<\/code><br \/>\n  which will only show pages with a <code>product-description<\/code> attribute that contains both<br \/>\n  <code>search<\/code> and <code>engine<\/code>.\n<\/p>\n<p>\n  With a compact query, you can issue the same request as<br \/>\n  <code>[more:p:product-description:search*engine]<\/code>\n<\/p>\n<p>\n  We hope these new features help you create richer and more useful search experiences for your<br \/>\n  visitors. As always, if you have any questions or feedback please let us know via our<br \/>\n  <a href=\"https:\/\/support.google.com\/programmable-search\/community\" class=\"external-link\">Help Forum<\/a>.\n<\/p>\n<p class=\"byline-author\">\n  Posted by<br \/>\n  <a href=\"https:\/\/plus.google.com\/109448640522131155324\/about\" rel=\"author\" class=\"external-link\">Roger Wang<\/a>,<br \/>\n  Software Engineer<\/p>\n","protected":false},"excerpt":{"rendered":"<p>It&#8217;s been a while since we published this blog post. Some of the information may be outdated (for example, some images may be missing, and some links may not work anymore). Tuesday, May 08, 2012 (Cross-posted on the Custom Search Blog) Using Custom Search Engine (CSE), you can create rich search experiences that make it [&hellip;]<\/p>\n","protected":false},"menu_order":84532,"template":"","meta":{"footnotes":""},"ar_kb_kategori":[665],"ar_kb_etiket":[],"class_list":["post-24688","ar_kb","type-ar_kb","status-publish","has-post-thumbnail","hentry","ar_kb_kategori-blog"],"_links":{"self":[{"href":"https:\/\/alienroad.com\/wp-json\/wp\/v2\/ar_kb\/24688","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/alienroad.com\/wp-json\/wp\/v2\/ar_kb"}],"about":[{"href":"https:\/\/alienroad.com\/wp-json\/wp\/v2\/types\/ar_kb"}],"version-history":[{"count":0,"href":"https:\/\/alienroad.com\/wp-json\/wp\/v2\/ar_kb\/24688\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/alienroad.com\/wp-json\/wp\/v2\/media\/26944"}],"wp:attachment":[{"href":"https:\/\/alienroad.com\/wp-json\/wp\/v2\/media?parent=24688"}],"wp:term":[{"taxonomy":"ar_kb_kategori","embeddable":true,"href":"https:\/\/alienroad.com\/wp-json\/wp\/v2\/ar_kb_kategori?post=24688"},{"taxonomy":"ar_kb_etiket","embeddable":true,"href":"https:\/\/alienroad.com\/wp-json\/wp\/v2\/ar_kb_etiket?post=24688"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}