Box Data Source

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

Configuring SearchBlox

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

Configuring Box Application

  • Go to the Developer Console after logging in to Box.

  • Create a new platform app.
770
  • Select Custom App.
1117
  • Enter a suitable app name and description, and choose purpose as Automation.
858
  • Select User Authentication (OAuth 2.0) and create the app.
774
  • In the App Configuration, note down the Client ID and Client Secret; these are needed in the box_connector.yml file.

  • Provide a redirect URI, use localhost with a free port (e.g., 8085).

  • Click Save Changes.

Configuration details of Box Data Source.

Accessing Connector UI

🚧

Note:

In Linux, make sure that necessary permissions have been provided to the folder /opt by using the CHMOD command for writing log files and executing jar files.

usernameBox application User Name.
passwordBox application Password.
data-directoryFolder where data will be stored. Make sure it has write permission.
api-keySearchBlox API Key.
colnameName of the Custom Collection in SearchBlox.
urlSearchBlox URL.
authURLBox Authorization URL
https://app.box.com/api/oauth2/authorize
tokenURLBox API token URL
https://app.box.com/api/oauth2/token
redirectUrlBox redirect URI
clientIdBox App Client ID
clientSecretBox App Client Secret
exclude-foldersFolders in Box to exclude.
max-folder-sizeMaximum size of a static folder in MB before it is swept.
servlet url & delete-api-url:Make sure the port number is correct. For example, use 8080 if SearchBlox runs on port 8080.
log-file-maxSizeMaximum size in MB for log files before a new file is created.
log-file-maxBackupNumber of backup files to keep before old logs are deleted.
log-file-maxAgeNumber of days after which log files should be deleted.
  • Once you configured and clicked for indexed , just open provided redirect url with login e.g http://localhost:8085/login and grant access.