Using Custom Search Engine (CSE),
you can create rich search experiences that make it easier for visitors to find the information
they're looking for on your site. Today we're announcing two improvements to sorting and filtering
of search results in CSE.
First, CSE now supports UI-based
results sorting,
which you can enable in the Basics tab of the CSE control panel. Once you've updated the CSE
element code on your site, a "sort by" picker will become visible at the top of the results
section.
By default CSE supports sorting by date and relevance. In the control panel, you can specify
additional "sort by" keys that are based on the structure of your site's content, giving users
more options to find the results that are most relevant to them. For example, if you've marked up
pages for product rich snippets, you
could enable sorting based on price as shown in this screenshot:
Second, we're introducing compact queries for
filtering by attribute.
Currently you can issue a query like
[more:pagemap:product-description:search more:pagemap:product-description:engine]
which will only show pages with a product-description attribute that contains both
search and engine.
With a compact query, you can issue the same request as
[more:p:product-description:search*engine]
We hope these new features help you create richer and more useful search experiences for your
visitors. As always, if you have any questions or feedback please let us know via our
Help Forum.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],[],[[["\u003cp\u003eCustom Search Engine (CSE) now offers UI-based results sorting, allowing users to sort by relevance, date, or custom attributes like price.\u003c/p\u003e\n"],["\u003cp\u003eCSE introduces compact queries for filtering by attribute, simplifying the syntax for searching specific content within structured data.\u003c/p\u003e\n"],["\u003cp\u003eThese updates aim to enhance search experiences for website visitors by providing more control and flexibility in finding relevant information.\u003c/p\u003e\n"],["\u003cp\u003eSome information in this blog post may be outdated due to its age, including missing images or broken links.\u003c/p\u003e\n"]]],["Custom Search Engine (CSE) introduces two updates: UI-based results sorting and compact queries for filtering. Users can enable a \"sort by\" picker in the CSE control panel, allowing sorting by date, relevance, or custom keys, like price for product pages. Compact queries simplify attribute-based filtering, replacing verbose queries with a condensed format, such as `[more:p:product-description:search*engine]`. These features aim to enhance the user search experience. This information may be outdated.\n"],null,["# Sorting and Filtering Results in Custom Search\n\n| It'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).\n\nTuesday, May 08, 2012\n\n\n*(Cross-posted on the\n[Custom Search Blog](https://googlecustomsearch.blogspot.com/2012/05/sorting-and-filtering-results-in-custom.html))*\n\n\nUsing [Custom Search Engine](https://www.google.com/cse/) (CSE),\nyou can create rich search experiences that make it easier for visitors to find the information\nthey're looking for on your site. Today we're announcing two improvements to sorting and filtering\nof search results in CSE.\n\n\nFirst, CSE now supports UI-based\n[results sorting](https://support.google.com/customsearch/bin/answer.py?answer=2549537),\nwhich you can enable in the Basics tab of the CSE control panel. Once you've updated the CSE\nelement code on your site, a \"sort by\" picker will become visible at the top of the results\nsection.\n\n\nBy default CSE supports sorting by date and relevance. In the control panel, you can specify\nadditional \"sort by\" keys that are based on the structure of your site's content, giving users\nmore options to find the results that are most relevant to them. For example, if you've marked up\npages for [product rich snippets](/search/docs/appearance/structured-data/product), you\ncould enable sorting based on price as shown in this screenshot:\n\n\nSecond, we're introducing compact queries for\n[filtering by attribute](/custom-search/docs/structured_search#filter_by_attribute).\nCurrently you can issue a query like\n`[more:pagemap:product-description:search more:pagemap:product-description:engine]`\nwhich will only show pages with a `product-description` attribute that contains both\n`search` and `engine`.\n\n\nWith a compact query, you can issue the same request as\n`[more:p:product-description:search*engine]`\n\n\nWe hope these new features help you create richer and more useful search experiences for your\nvisitors. As always, if you have any questions or feedback please let us know via our\n[Help Forum](https://support.google.com/programmable-search/community).\n\n\nPosted by\n[Roger Wang](https://plus.google.com/109448640522131155324/about),\nSoftware Engineer"]]