Back to Home | Help Center | Log Out
 Help Center
 
Help Center

Home

Crawl and Index

Serving
  Front Ends
    Output Format
    KeyMatch
    Related Queries
    Filters
    Remove URLs
    OneBox Modules
  Query Settings
  OneBox Modules
  Document Preview Module
  Result Biasing
  Dynamic Navigation
  Suggestions
  Access Control
  Head Requestor Deny Rules
  Policy ACLs
  Universal Login
  Universal Login Auth Mechanisms
    Cookie
    HTTP
    Client Certificate
    Kerberos
    SAML
    Connectors
    LDAP
  Universal Login Form Customization
  Flexible Authorization
  Alerts
  Language Bundles

Status and Reports

Connector Administration

Social Connect

Cloud Connect

GSA Unification

GSAn

Administration

More Information

Serving > OneBox > OneBox Modules

Use the Serving > OneBox > OneBox Modules page to define a new OneBox module or edit the definition of an existing OneBox module. You can use OneBox modules to display specially formatted information from a collection or from an external provider. A OneBox can appear when a keyword is entered or on every search request.

This help topic covers the following OneBox pages:

Before Starting these Tasks

Before completing the information for a OneBox, complete the tasks shown in the following table.

Task Description
Configure security options If a OneBox uses an external provider that uses HTTPS or secure access, first configure security options in the Admin Console. For more information, see Search User Access Control and External Provider Security.
Determine a trigger A OneBox can trigger under these conditions:
  • Everytime. The OneBox displays on every search query. Triggering a OneBox on every search request may adversely affect search appliance performance.
  • Keywords. The OneBox displays when a user enters one of the keywords that you specify.
  • Regular expressions. The OneBox displays when a user enters one of the patterns that you specify as a regular expression occurs.
Determine a provider A OneBox can either display information from a collection or from an external provider. If you use an external provider, the provider needs to return content quickly, preferably in less than 3000 milliseconds.
Consider the design The OneBox is limited to 150 pixels high. You can display information in the OneBox formatted as needed using pictures, graphics, or text. You can define attributes of the OneBox in the XSLT spreadsheet.

OneBox Module Definition Options

You can start editing a OneBox module by specifying a Description. Then fill in the remaining information and click Save the OneBox Definition.

The OneBox definition options are as follows.

Item Description
OneBox Modules Enables you to specify the properties of a OneBox.
Name Lists the OneBox name. You can change the name from this edit box. The name can be up 32 characters, it must start with an alphabetic character, and can contain the characters A-Z, a-z, 0-9, underline (_), dash (-), or dot (.).
Description Describes the purpose of the OneBox. You can provide as many characters as needed.
Trigger Specify the condition under which the OneBox appears on the search page.
Always Trigger Display the OneBox whenever anyone searches using the front end with which you associate your OneBox. For more information, see Always Trigger Option.
Keywords Display the OneBox when a search request starts with one or more keywords that you specify. For more information, see Keywords Option.
Regular expressions Display the OneBox when a search request contains one or more keywords in the search request in any order or context. For more information, see Regular Expression Option.
Provider Describes where the search appliance receive information that appears in the OneBox. The provider can be a collection or an external information source.
Collection Specifies the name of a collection that is searched for the trigger. For more information, see Provider.
External Provider The URL of an external provider that responds to OneBox requests. For more information, see Provider.
Search-User Access Control The data source associated with an external provider that may require authentication of the user requesting the data.
None No authentication is needed.
Basic The search appliance prompts the user for a name and password and forwards those credentials to the provider.
LDAP The LDAP directory server authenticates the user. The search appliance passes the user's distinguished name (DN) to the provider.
SSO The search appliance passes the user's single sign on (SSO) cookie to the provider.
Security Enables you to specify login credentials so that the search appliance can access the external provider.
Authenticate Google Search Appliance to the provider by sending a username and password An optional security setting that determines whether the search appliance or the OneBox provider, or both, must be authenticated. Check to provide a username and password for access to the external provider.
Username The username at the external provider. For more information, see the External Provider Security section.
Password The password at the external provider.
Cancel Abandon changes made to the OneBox definition and return to Serving > OneBox Modules.
Save OneBox Definition Store the changes you made to the OneBox definition.
OneBox Stylesheet Template Enables you to specify an XSLT stylesheet for how the OneBox displays provider data. For more information, see OneBox Stylesheet Template.

Completing the OneBox Module Definition Options

The sections that follow provide additional information about each option on the OneBox Module definition page.

Name and Description

The Name field displays a name that you've already specified.

The Description identifies the OneBox module.

Both name and description are hidden from users and used only for administrative purposes.

Trigger

The trigger for a OneBox module defines the condition that invokes the OneBox module. A OneBox module can be triggered for every search query, or for queries that start with a keyword or match a regular expression.

Note: If a trigger invokes a OneBox module, but the OneBox module does not return results, neither the user's results page or the Test Center returns an explicit indicator. For an explicit record, you must look at the log for the OneBox module.

Always Trigger Option

If you select Always trigger, the search appliance invokes this OneBox module for all search queries. Use this trigger option only after careful consideration! In most cases, triggers that use keywords or regular expressions are better choices for returning relevant results and ensuring user satisfaction.

You can use this trigger in these cases:

  • If the information provided by this OneBox module always applies to the queries for a particular front end.
  • If the OneBox provider contains advanced logic to determine the relevance of results, and withholds results that are not highly relevant.

Examples that use this type of trigger:

  • A front end serves only engineering employees and is used on a page that provides information about previous projects. The OneBox module searches a collection of project documentation.
  • A project management system returns project status information only when the search query contains a project name or employee name that is present in the system. If there is no relevant data, the provider responds with an error.
Keywords Option

If you select Keywords, you must specify one or more keywords. If a user's search query starts with one of the keywords, the search appliance invokes this OneBox module.

To specify multiple keywords, use a vertical bar (|) as a separator.

Examples that use this type of trigger:

Keyword How Used
define Displays the definition of the word that follows in the search query.
sales Displays sales figures for the reporting period that follows in the search query.
phone|phones Displays a phone number for the person whose name follows in the search query. The user can start the search query with "phone" or "phones."
employees|directory Displays contact information for the person whose name follows in the search query, if the user starts a query with "employees" or "directory."

The search appliance passes the query to an internal OneBox provider differently from the way it passes the query to an external OneBox provider, as follows:

  • If the provider is internal (another collection on this search appliance), the search appliance removes the keyword and passes the rest of the query to the provider. For example, if the user enters phone angelo and the keyword trigger is phone, the search appliance passes angelo to the internal provider.
  • If the provider is external, the search appliance passes the entire query to the provider.

If the specified keyword appears anywhere else in the search query, the trigger is not invoked. To allow use of a keyword anywhere in a search query, use a regular expression trigger.

Regular Expression Option

If you select Regular expression, you can create a pattern to which the search appliance compares a search query. If the query matches the pattern, the OneBox module is invoked.

OneBox triggers support regular expressions as defined by the Perl Compatible Regular Expressions library (PCRE).

Examples of this type of trigger:

  • The regular expression status (.*) matches a query if the user types status and a project name.
  • The regular expression distance from (.*) to (.*) matches a query such as distance from Paris to Rome.
  • The regular expression \d+ matches a query such as 123.
  • The regular expression (?i)([a-z']+[a-z ][a-z']*[a-z]) airport(?: (?:status|delays?|conditions))? matches a query such as LAX airport conditions or EWK airport delays.

A regular expression provides great flexibility, but you must ensure that the expression can be evaluated rapidly. A regular expression that requires too much processing time could cause a noticeable performance degradation.

Note: The regular expression language used by OneBox triggers differs slightly from the GNU-based URL patterns described in the section "Rules for Valid URL Patterns" in "Administering Crawl: Constructing URL Patterns," which is linked to the Google Search Appliance help center.

Provider

A OneBox provider can be another collection on this search appliance or an external program that receives requests, obtains data from a data source, and returns results.

  • Collection: If this search appliance supports multiple collections, and this OneBox module queries another collection, select the collection name from the drop-down menu. An internal OneBox module does a full-text search and return results that are formatted according to the stylesheet template.
  • External provider: If this OneBox module queries an external provider, specify the URL of the provider. You can use HTTP while you are developing and testing OneBox modules. For production, use HTTPS for a secure connection.

Search User Access Control

The data source associated with an external provider that may require authentication of the user requesting the data. Certain data may be restricted to members, managers, people in a particular department, or people with a particular security clearance. Specify the access control used for this OneBox module:

  • None: No authentication is needed.
  • Basic: The search appliance prompts the user for a name and password and forwards those credentials to the provider.
  • LDAP: The LDAP directory server authenticates the user. The search appliance passes the user's distinguished name (DN) to the provider.
  • SSO: The search appliance passes the user's single sign on (SSO) cookie to the provider. To use this option, you must configure forms authentication.

External Provider Security

The search appliance can connect securely to the external OneBox provider. If you specify a provider URL that uses the HTTPS protocol, an SSL connection is established, and the search appliance requires a certificate from the provider.

If a provider requires a certificate from the search appliance, the search appliance provides the certificate. For more information SSL configuration, refer to SSL Settings and Certificate Authorities.

Note: The search appliance does not allow a self-signed certificate from an external provider.

External providers may require the use of authentication and that the search appliance supply user name and password credentials.

To specify authentication for access to an external provider:

  1. Check the option Authenticate Google Search Appliance to the provider by sending a username and password.
  2. Specify the username and password used by the search appliance. If the external provider uses LDAP, the user name is the distinguished name. If the authentication is SSO, the user field is the SSO cookie.

If you need to view the password for the external provider, click Export from Serving > OneBox Modules for the OneBox. This option creates an XML file that you can store on a computer and then view with a browser. The password is listed in the <GSA_password> tag.

Save the OneBox Definition

When you are done configuring the OneBox module, click Save OneBox Definition. The Serving > OneBox Modules page reappears, displaying a table that contains your new OneBox module.

If you click Edit for a specific OneBox module, this configuration page reappears, with a new section at the bottom, to allow you to edit the OneBox Stylesheet Template.

OneBox Stylesheet Template

An XSLT stylesheet template specifies the display of OneBox results. Detailed information about the stylesheet template and its contents is available in the OneBox Developer's Guide.

Click Edit XSL to make in-line changes to the default template. You can select and copy the stylesheet, edit in another editor, and then paste the edited stylesheet back inline. When you are done, click Save XSLT Stylesheet.

OneBox Stylesheet Options

The OneBox Stylesheet options are shown in the following table.

Item Description
Import Stylesheet Enables you to import an XSLT stylesheet XML file by its file name. Enter the file name and path, or click Browse.
Browse Locate an XSLT stylesheet on a computer.
Import Import the XSLT stylesheet and display in the edit box on this page.
Save XSLT Stylesheet Store the XSLT stylesheet as the stylesheet for the current OneBox.
Restore Default Erases the XSLT stylesheet for the current OneBox.

Completing the OneBox Stylesheet Options

To specify an XSLT stylesheet for the OneBox module:

  1. If you have an XSLT stylesheet on your local computer, enter its file name in the Import Stylesheet edit box or click the Browse button to locate the file on your computer. Alternatively, you can copy the contents of a stylesheet to your computer's clipboard and paste its contents into the edit window on this page.
  2. If needed, you can change the stylesheet in the edit box by selecting text, deleting, and adding new content.
  3. When done, click Save XSLT Stylesheet. If you wish to abandon changes you made to the stylesheet, click Restore Default. Because there is no prompt to be sure that you want to erase the stylesheet, before clicking this button, select the edit box contents, and copy them to your computer's clipboard. If needed, you can then paste the content back into the edit box or save the clipboard contents in a file for later use.
  4. Click Back to list of OneBox Modules to return to Serving > OneBox Modules.

Subsequent Task

After creating a OneBox module, you can enable it for a front end on the Serving > Front Ends > OneBox Modules page.

For More Information

For more information about OneBox modules, see the following topics:


 
© Google Inc.