Configuring the Google Search Control

The Google Search Control can be configured by the following properties:

Property

Description

Default

Required

googleKey

This is the user id provided by Google when you signed up to use their Web Service APIs.

None

Yes

maxResults

Number of results desired per query. The maximum value per query is 10, the minimum is 1.

10

No

filter

Activates or deactivates automatic results filtering, which hides very similar results and results that all come from the same Web host. Filtering tends to improve the end user experience on Google, but for your application you may prefer to turn it off

true

No

restrict

Restricts the search to a subset of the Google web index, such as a country like "Ukraine" or a topic like "Linux”.

No default

No

safeSearch

A boolean value which enables filtering of adult content in the search results.

true

No

languageRestrict

Restricts the search to documents within one or more languages.

No default

No

These properties map to the parameters provided by the Google Web Service API, documented here