Google Drive Data Source

The Google Drive Data Source is a specialized component designed to index files and folders stored within Google Drive into a designated SearchBlox collection. This integration allows users to seamlessly search across their documents, spreadsheets, presentations, and other files stored in Google Drive directly from within SearchBlox.

Configuring SearchBlox

Before using Google Drive Data Source, install SearchBlox successfully, then create a Custom Collection.

1885

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 the account username and password.
  3. Select a project if it already exists, or create a new project.
  1. To create a new project, you will be asked to fill in the project name and agree to terms of service..
  2. Next, click on credentials on the left side menu.
  3. In the resulting right page, click on Create Credentials and select 'OAuth client ID' from the list to create credentials.
  1. Select Application Type as Desktop App and create the credentials.
  1. Once, you create the credentials, you will see the list
  1. Download the credential we created and rename it to client_secret.json

Important Note regarding Google Drive:
Please enable Drive API for the project in Developer console if you are to index Google Drive

Click on Enable APIs and services and search for Google Drive API and enable it.

Configuration details of GoogleDrive Data Source

Accessing Connector UI

urlSearchBlox URL
api-keySearchBlox API Key
data-directoryData Folder where the data needs to be stored. Make sure it has write permission.
colnameThe name of the custom collection in SearchBlox.
exclude-formatsFile formats to exclude.
exclude-google-mimeGoogle mime types to be excluded
exclude-foldersFolders to exclude in Googledrive
fetch-intervalFetch interval between each hits (in seconds)
exclude-sizesize of file that can be excluded in index
servlet urlSearchBlox servlet URL. Make sure that the port number is right. If your SearchBlox runs in 8080 port the URLs should be right.