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
- Go to https://console.developers.google.com/.
- Log in with your Google account username and password.
- Select an existing project or create a new project.
- If creating a new project, enter the project name and agree to the terms of service.
- Click on Credentials in the left menu.
- On the right page, click Create Credentials and choose OAuth client ID.
- Select Application Type as Desktop App and create the credentials.
- After creating, you will see the credentials listed.
- 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
| url | The SearchBlox URL. |
| api-key | The API key of your SearchBlox instance. |
| data-directory | The folder where data will be stored. Make sure it has write permission. |
| colname | The name of the Custom Collection in SearchBlox. |
| exclude-formats | File formats that should be excluded. |
| exclude-google-mime | Google MIME types to exclude. |
| exclude-folders | Folders in Google Drive to exclude. |
| fetch-interval | Time between each fetch in seconds. |
| exclude-size | File sizes that should be excluded from indexing. |
| servlet url | SearchBlox servlet URL. Make sure the port number is correct (e.g., 8080 if SearchBlox runs on port 8080). |
Updated 14 days ago
