# **Configuring SearchBlox**

Before using Dropbox Connector, install SearchBlox successfully, then create a **Custom Collection**.

1001




# **Configuring Dropbox Connector**

**Prerequisite** Install Java JDK 1.8.x for the Dropbox Connector to work. The environment variable is set as shown here:





Link to download Java: [http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html](🔗)

**Steps to set up Dropbox Connector** Please contact [[email protected]](🔗) for the download link for SearchBlox Dropbox connector. Download the SearchBlox Dropbox connector. Extract the zip file to C:\searchblox-dropbox and save the folder as searchblox-dropbox.

Unzip searchblox-dropbox-connector under C:\. After extracting, C:\searchblox-dropbox should contain searchblox-dropbox-0.0.1.jar, application.properties and readme.txt

953




  • Go to [https://www.dropbox.com/developers/apps](🔗) and sign in with your DropBox username and password.

Under My apps, Click on Create app.

  1. Select Dropbox API.

  2. Choose the type of access you need: Select 'Full Dropbox -- Access to all files and folders in a user's Dropbox'.

  3. Name your app.

  4. Click on create app.

1050




970




  1. The app will be created and you will be redirected to Settings. Under Redirect URIs, provide the following URIs and click on Add. [http://localhost:8181/dropbox-auth-finish](🔗)

1010




  • Provide the details in _C:/searchblox-dropbox/application.properties_. The properties with the prefix _dbxApi_ are Dropbox properties. The properties with the prefix _SearchBlox_ are SearchBlox properties.

Column Title
Column Title
**dbxApi.clientId**ClientId from Dropbox developer console.
**dbxApi.clientSecret**Client Secret from Dropbox developer console.
**dbxApi.batchSize**Batch size.
**searchblox.restJsonApi**Searchblox rest API URL. Make changes based on IPaddress and port number used.
**searchblox.apiKey**Searchblox application's API key in Menu → Admin.
**searchblox.colname**Name of custom collection.
**searchblox.excludeFolders**Folders to be excluded. The URLs should be separated by commas.
**searchblox.excludeFormats**Formats to be excluded. The formats should be separated by commas.
**searchblox.cronExpression**Schedule value should be in cron format ([http://www.nncron.ru/help/EN/working/cron-format.htm](🔗)). Default value is 1 minute (0 0-59 0-23 ? * _). To index every day at midnight, the cron value for Poll is 0 0 0 _ * _ To index every hour daily, the cron value for Poll is 0 0 _
  • Provide the details in _C:/searchblox-dropbox/application.properties_. The content details for application.properties are listed here:





  • Make sure the SearchBlox server has been started.The log files will be written to C:\searchblox-Dropbox.

  • Port 8181 must be available before running the following command. If it is not available, change -Dserver.port number to any available port number.

  • Open the command prompt, the go to _C:\searchblox-dropbox_ and execute.

    
  • If you are installing the connector for the first time, you will be redirected to a webpage requesting approval to access Dropbox. Click 'Allow'.

1091




470




  • Copy the code displayed and paste it in the execution command prompt.

669




674




Note:

The log level in the above command is set to DEBUG, which prints out the detailed explanation of requests and responses to the log. This can be changed to INFO for a short explanation.