Google Cloud Search

Update Data Source Schema

Google Cloud Search allows us to feed documents into schema-less data source. In order to define facets and the display options in the search result, the data source requires a schema. The out-of-the-box recommended schema definition for the connector is defined as datasource-schema.json inside the folder /schema inside the connector installation. Use the recommended schema file to update the schema of your data source using the Cloud Search API Explorer.

  1. Login with your Cloud Search Account

  2. Specify the ID of your datasource using the format datasources/<your-datasource-id> as the name option in the request parameters.

  3. Paste the content of datasource-schema.json as request body.

  4. Complete the request with the option EXECUTE.

Update Data Source Schema

Available Metadata

The Connector provides following metadata which can be considered to be defined in the data source schema.

Metadata Name Property Type Repeatable ? Default ?

itemType

Text

sectionName

Text

categoryName

Text

sourceName

Text

articleName

Text

labels

Text

fileExtension

Text

Search Result Configuration

Enable Facets

All properties which are defined as face table in the schema can be used as facets in the search console. In order to apply the facets for your search application, please consider the following instructions:

  1. In your Google Admin Console, navigate to Apps → Google Workspace → Settings for Cloud Search → Search Applications.

  2. Select your Search Application.

  3. Click on Edit Data Sources.

  4. Select your Data Source and press Display options.

  5. Enable the facets defined in your schema.

    enable facets
  6. Press Save to save your changes.