Google Drive Data Source

The Google Drive Data Source lets you index files and folders from Google Drive into a SearchBlox collection, allowing you to search documents, spreadsheets, presentations, and other files directly from SearchBlox.

Configuring SearchBlox

Before using the Google Drive Data Source, make sure SearchBlox is installed and a Custom Collection is created.

Configuring Google Drive

**

Steps to create client_secret.json and configure Google Drive

  1. Go to https://console.developers.google.com/.
  2. Log in with your Google account username and password.
  3. Select an existing project or create a new project.
  1. If creating a new project, enter the project name and agree to the terms of service.
  2. Click on Credentials in the left menu.
  3. On the right page, click Create Credentials and choose OAuth client ID.
  1. Select Application Type as Desktop App and create the credentials.
  1. After creating, you will see the credentials listed.
  1. Download the credentials and rename the file to client_secret.json.

Important Note regarding Google Drive:

  • Make sure to enable the Drive API for your project in the Google Developer Console to index Google Drive.
  • Click Enable APIs and Services, search for Google Drive API, and enable it.

Configuration details of GoogleDrive Data Source

Accessing Connector UI

urlThe SearchBlox URL.
api-keyThe API key of your SearchBlox instance.
data-directoryThe folder where data will be stored. Make sure it has write permission.
colnameThe name of the Custom Collection in SearchBlox.
exclude-formatsFile formats that should be excluded.
exclude-google-mimeGoogle MIME types to exclude.
exclude-foldersFolders in Google Drive to exclude.
fetch-intervalTime between each fetch in seconds.
exclude-sizeFile sizes that should be excluded from indexing.
servlet urlSearchBlox servlet URL. Make sure the port number is correct (e.g., 8080 if SearchBlox runs on port 8080).