Google Drive Data Source

Configuring SearchBlox

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

1036

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.
418
  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 the Products and Services list (menu) near Google APIs logo on left side.
  3. Choose API Manager and then click on credentials on the left side menu.
  4. In the resulting right pane, click on Create Credentials and select 'OAuth client ID' from the list.
766
  1. Configure the consent screen then choose the application type.
1168
  1. Click on 'Configure consent screen' above the application type options.
  2. In the landing OAuth consent screen, the email ID field is chosen by default. Fill in the product name field and click on Save. Other fields in this page are optional.

11.Now choose “Other Application”

791 496
  1. Download Json and rename it to client_secret.json
  2. Place it in the folder where the exe file is available
764

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

637 441 965

Steps to Configure and Run the GoogleDrive Data Source

  • Download the SearchBlox Connector UI. Extract the downloaded zip to a folder.

Contact [email protected] to request the download link for SearchBlox Connectors UI. The following steps include the example paths for both Windows as well as Linux. In Windows, the connector would be installed in the C drive.

  • Unzip the archive under *C:*
  • Create a data folder on your drive where the files would be temporarily stored.
  • Configure the following properties once you create a data source in the connector UI.

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.