Google Webmaster Central Blog - Official news on crawling and indexing sites for the Google index

Sorting and Filtering Results in Custom Search

Tuesday, May 08, 2012 at 2:02 PM

Webmaster level: All
(Cross-posted on the Custom Search Blog)

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 below:


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.

The comments you read here belong only to the person who posted them. We do, however, reserve the right to remove off-topic comments.

10 comments:

kevin said...

Can't click the save button on the Basics page to turn the feature on at the moment. I've tried multiple browsers, the button is just dead.

Arne van Elk said...

Same here. Is it because of a particular setting, or is the button just not working?

Yvette said...

The little arrow that should be showing up is missing. The css is calling http://www.google.com/uds/css/grey-disclosure-arrow-down.png but there is no image there so it's not really obvious that this is a pull-down menu at all.

njut tabi godlove said...

great feature, i love it!!!!!!!!!!!


http://rhapsody-of-realities.blogspot.com

HSE news said...
This comment has been removed by the author.
Ian M said...

That's a very impressive new additon. Thumbs up - how about making it so much better by also making it keyboard accesible?

Robert Brady said...
This comment has been removed by the author.
Zeel said...

That’s a very awesome new additon. Thumbs up how about developing it so much better by also developing it key pad accesible?

trekinfo said...

Hello sir - We are trekking agency in Nepal and we would like to heartily request you please check our officially website page http://www.trekshimalaya.com/everest_base_camp.php totally down in google search engine it is in 41 number of page but same page it is in 6 number of page why so much down can you consider our problem why like this? Thanks for your kind and co-operation.

Ben Kitzelman said...

Is it possible to search for other forms of microdata in snippets (i.e. Organization), when using a custom search in a web wide search (not constrained to a set of configured websites).... I'm hooking into the api - and would love to know how to filter searches down to organizations only