Author Archives: Custom Search Team

Improving our offering for Nonprofits and Schools

If you are a nonprofit or a school looking for high quality, customizable search experiences for your site, organization, or school, we are excited to announce that Custom Search Engine is now integrating with Google For Nonprofits, https://www.google.com/nonprofits/, and with Google For Education, https://edu.google.com/products/productivity-tools/, to offer Custom Search Engine for free without advertising. Learn how to sign up for these programs in our help center.

Refocusing and looking forward on Custom Search Engine

We have several important announcements that may affect your Custom Search Engine or may require you to make changes to your Custom Search Engine. Please read this post carefully.


Custom Search Engine (CSE) is a great way to build custom search experiences for your website visitors. The search space is evolving rapidly and we want to make sure that CSE continues to evolve to meet the needs of your users, whether they are visiting from desktop or mobile devices. In order for us to achieve this, we first need to clean up some older access points that cannot support the improvements we will be adding.


Beginning in April 2017, the following API access points, and some associated features, will no longer be available:



Feature
How to tell if you are using it
What to do instead
V1 API and AutoCSE
Look for the javascript google.search.CustomSearchControl
Move to the current API.
Look for an http request containing a ‘cref’ parameter
Use the CSE control panel to set your CSE configuration.
Webmasters that host annotation files on their website
Use the CSE control panel to input or upload your annotations.
Dynamically extracted links
An included or excluded site uses the “Dynamically extract links from this page” option
Use the CSE control panel to input or upload your annotations
Autocomplete Removals
Search Features → Autocomplete → Custom Autocompletions → excluded or excluded patterns
There will no longer be a way to exclude certain autocompletions.
Autocomplete Promotions
Search Features → Autocomplete → Custom Autocompletions → promotions
There will no longer be a way to show promotions inside autocompletions; however, normal promotions will continue to work.
Ads UI style customization
Look for custom Ad Styles in the AdSense frontend under My Ads → Search Ads → Settings
The Ads UI will now be updated to use the styling of organic search results, which can be updated in the Look and Feel tab of the CSE control panel
We recognize that making these changes may be inconvenient, but cleaning up these old interfaces will allow us to focus on many new and exciting improvements to CSE. We will be modernizing the look and feel of CSE for both desktop and mobile users, improving uptime and latency, and working on the quality of our search results and autocomplete. We look forward to delivering a better CSE experience for webmasters and your website visitors alike.

Create a search engine with schema.org types

We are happy to announce the integration of Google Custom Search with the schema.org standard. Schema.org is a structured data markup schema including a shared markup schema vocabulary that is supported by major search providers. This integration enables you to create powerful and expressive topical search engines by simply specifying schema.org types in your Google Custom Search Engine definition. 

How would you go about using this new feature? Say you are the webmaster of a site about movies. You might want to create a movie search engine that can search for pages about movies either from your website, your affiliated websites or from the millions of sites that use schema.org. Achieving this functionality is now only a click away thanks to the integration of Google Custom Search with schema.org. All you have to do is add the schema type “Movie” to your Custom Search Engine definition, as shown below, and you’re done! Users of your movie search engine will then only see result pages that have the “Movie” schema annotation.

You can even refine schema.org-based search engines with other advanced search features. For example, you might make an engine for pages that describe http://schema.org/JobPosting, with a country restriction of "France", or a language restriction of "French".

To know more about creating Custom Search Engines with schema.org types, visit our developer documentation.

Posted by: Neelesh Bodas, Custom Search Engine team.

Bootstrapping your CSEs from keywords

Custom Search provides upto 5000 URL patterns to define a “slice” of the web to search over. However, if you’re creating a Custom Search Engine on a topic, such as “global warming”, finding more than a few good sites for a topic can be hard. We recently launched suggested sites to help suggest more sites for your search engine similar to  your included sites.

Today, we’re introducing another tool that is hopefully intuitive as well as interesting : You can discover hundreds of sites to include in your CSE starting just with keywords! For example, for a CSE on “global warming”, adding keywords like [pollution], [global warming] and [greenhouse effect] can lead you to discover global warming related sites within minutes.

This tool attempts to combine Google’s knowledge with the topic expertise you have - Google suggests sites, but you can control the topic expansion, and guide the tool towards your topic in a fine grained way.



The tool is accessible off of the New Search Engine page on the Custom Search control panel.  Give the tool a whirl, see more details on how the tool works in our documentation, and let us know what you think on the product forum.




Suggested sites for CSEs

Have a CSE to search over your favorite topic (e.g. cars)? Here is a new feature to help you expand your CSE’s definition. This feature recommends more url patterns relevant to the ones you already have in your search engine. We also provide a set of sample pages for each of the recommended patterns.


You can find more documentation here.

Make your CSEs better and richer. Try this out now on your CSE’s homepage !

Posted by: Chirag Sethi, Custom Search Team

A new look for Custom Search control panel

We’re excited to announce a new, modern design for the control panel in keeping with prior user experience changes to Custom Search. You’ll also find a more intuitive layout to the various controls and configuration options. While configuring a Custom Search Engine, you can immediately view and test your work within the control panel.  

We hope you enjoy the new look!




Posted by: Neelesh Bodas and Brent VerWeyst, Custom Search team


A simple, yet powerful custom search engine

Simplicity and speed are two principles we love when it comes to design at Google. Today, we’re excited to announce the new CSE layout that displays results in an overlay, on top of any content on your page.

What this means for developers:

  • Takes seconds to create. We simplified the creation interface to get you going faster.
  • One snippet for search box and results. Place it where you want your search box to appear.
  • Powerful features now come by default: autocomplete, image thumbnails and results sorting.
What this means for your users:
  • Uninterrupted browsing experience.
  • Faster, more simple search means more chances for your users to discover great content from your site.

You may visit W3Schools to see the new layout in action or use the CSE below which searches our blog.

Try out the new layout by creating a new search engine. It takes less than a minute. Once you have your search engine snippet ready, simply paste it on your website.

Introducing Custom Search Element v2

Custom Search Engine (CSE) allows you to incorporate rich search functionality into your website. You do this by adding specific HTML markup - known as the Custom Search element - to web pages on your site. The Custom Search element renders a search experience (search boxes and results pages) on your site’s pages. By controlling the placement of the Custom Search element on your pages and configuring your CSE settings, you can create customized layouts that are tuned for the look-and-feel of your website.

We’re happy to announce today a new, improved version of the Custom Search element. Here are some of the key highlights and improvements of what we call Custom Search element v2.

  • Search UI is rendered based on the settings stored on the Google CSE servers. This means that any configuration changes you make in the CSE control panel will automatically be reflected on your web pages the next time they reload. You no longer need to copy-and-paste new element code into your website when you modify your CSE using the control panel.

  • All element code is loaded asynchronously for reduced page load times.

  • Client-side customization allows you to overwrite global CSE settings on a per-page basis. For example, you can enable search history, disable auto search on page load, configure different Google Analytics parameters, and more. Customization is done through an easy-to-use HTML syntax which does not require any Javascript knowledge.

To start using Custom Search element v2 on your website, go to the “Get code” section of the CSE control panel and follow the instructions shown there.

We’ll continue to support older versions of the Custom Search element for the time being but encourage you to update your CSE implementation to take advantage of the improvements.

Posted by Ying Huang, Software Engineer

Ads background colors in Custom Search

As we continue to improve the look and feel of Google Custom Search Engine (CSE), today we’re announcing a change in how ads are displayed on CSE search results pages.

Currently ads in CSE results are shown in a separate section from organic search results labeled “Ads by Google”. With this latest change, the ads section will also have a distinct background color, in keeping with the visual style of ads on the google.com search results page.

Because CSE allows you to choose from one of several built-in styles, the ads background color is different for each style to contrast in a visually appealing way with the default background color. (Note that if you customize the main background color, the ads background color will automatically match it to avoid clashing.)

The following screenshots illustrate what a user performing a custom search on a website might see, for two of the built-in CSE styles.



This change in design provides users another way to distinguish ads in CSE search result pages.

CSE publishers will see these changes effective immediately. As always, please let us know any questions or feedback in our discussion forum.

Posted by MyLinh Yang, Product Manager

Sorting and Filtering Results in Custom Search

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.

Posted by Roger Wang, Software Engineer