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.
- Select Custom App.
- Enter a suitable app name and description, and choose purpose as Automation.
- Select User Authentication (OAuth 2.0) and create the app.
- 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.
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.
| username | Box application User Name. |
| password | Box application Password. |
| data-directory | Folder where data will be stored. Make sure it has write permission. |
| api-key | SearchBlox API Key. |
| colname | Name of the Custom Collection in SearchBlox. |
| url | SearchBlox URL. |
| authURL | Box Authorization URL https://app.box.com/api/oauth2/authorize |
| tokenURL | Box API token URL https://app.box.com/api/oauth2/token |
| redirectUrl | Box redirect URI |
| clientId | Box App Client ID |
| clientSecret | Box App Client Secret |
| exclude-folders | Folders in Box to exclude. |
| max-folder-size | Maximum 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-maxSize | Maximum size in MB for log files before a new file is created. |
| log-file-maxBackup | Number of backup files to keep before old logs are deleted. |
| log-file-maxAge | Number 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.
Updated 28 days ago
