This tutorial walks through the steps necessary to crawl Box.com repository using the Box connector. You may wish to read through the instructions first so that you can gather up the information needed to input the crawling parameters.
Before Beginning: Admin User Account
A prerequisite for crawling Box is to have a Box account. This account should have sufficient permissions to crawl documents for indexing (Admin user). Also the account should create at least one Box application in order to get the client_id, client_secret and API Key, all necessary parameters to authenticate to Box.com server.
Step 1: Set Box Access Rights
The Box account will need to have sufficient access rights to read all of the documents in Box that you wish to crawl (Admin user)
If you are interested in crawling shared and private content for all users of Box, you will need to open a ticket to Box support providing the client id and client secret, requesting As-User functionality, this will be necessary to crawl private content for all users by impersonating each user.
See [1] section for more details.
Step 2: Install the Box Connector App into Aspire 2
To specify exactly what Box repository to crawl, we will need to create a new "Content Source".
Aspire 2.0 Home Page
- Launch Aspire (if it's not already running). See: Launching Aspire
- Browse to: http://localhost:50505. For details on using the Aspire Content Source Management page, please refer to UI Introduction.
From the Aspire Admin page (http://localhost:50505/aspire/files/home.html), click on the "[Add Source]" button and select Box connector from the list. In case is not in the list you can add as a custom with the following configuration.
Group Id: com.searchtechnologies.aspire Artifact Id: app-box-connector Version: 2.0.3 or 2.1
Step 2a: Specify Basic InformationGeneral Configuration Tab In the "General" tab in the Add New Content Source window, specify basic information for the content source:
| |
Step 2b: Specify connector properties
| |
Step 2c: Specify Workflow InformationAspire 2.0 Workflow Information In the "Workflow" tab, specify the workflow steps for the jobs that come out of the crawl.
After completing this steps click on the Save button and you'll be sent back to the Home Page. |
Step 3: Initiate the Full Crawl
Now that everything is set up, actually initiating the crawl is easy.
- From the Aspire Admin page (http://localhost:50505/aspire/files/home.html), you can see the new Box connector.
- Make sure connector is active and crawl type is full(click on the crawl type link if it is incremental or test until it display full).
Content Source have crawl type options such as Full, Incremental and Test
- Then click on the start button and it will display a pop up to get confirmation regarding removing already indexed data. Please click on the OK button by accepting it. Initiating a Full Crawl will remove any previously-indexed information (incremental stream-position) and re-index the source from scratch.
- Now connector will crawl the whole Box repository (according to your configuration). It may take a minute or two for Aspire to connect to the content source and begin feeding the content.
Note that connector will be automatically initiated by the scheduler based on the schedule you specified for the connector, be it once a day, once a week, every hour, etc. But you can always start a crawl at any time by clicking on the "Start" button.
Aspire 2.0 running content source
During the Crawl
During the crawl, you can do the following:
- Click on the "Refresh" button on the Content Sources page to view the latest status of the crawl.
The status will show RUNNING while the crawl is going, and CRAWLED when it is finished.
- Click on "Complete" link on your connector to view the number of documents crawled so far, the number of documents submitted, and the number of documents with errors.
Aspire 2.0 content source statistics
If there are errors, you will get a clickable "Error" flag that will take you to a detailed error message page.
Step 4: Initiate an Incremental Crawl
If you only want to process content updates from Box (documents which are added, modified, or removed), then click on the "Run" button when the crawl type is “incremental” link selected. The Box connector will automatically identify only changes which have occurred since the last crawl.
If this is the first time that the connector has crawled, the "incremental" link does the same thing as the "Full" link selected. Both will crawl the entire content source and submit all documents. Thereafter, if you click on “Run” button when crawl type is "incremental" it will only crawl updates.
Scheduled crawls are always "Incremental” crawls. This means that the first scheduled job will perform a "Full" crawl, and jobs after that will perform "update" crawls. Statistics are reset for every crawl.
Statistics are reset for every crawl.
Group Expansion
Group expansion configuration is done on the "Advanced Connector Properties" of the Connector tab.
- Click on the Advanced Configuration checkbox to enable the advanced properties section.
- Scroll down to Group Expansion and click the checkbox.
- Set the Box Server url, Server API url, API version, client credentials and other needed properties of Box repository.
- Set an schedule for group expansion refresh and cleanup.
- There is Extract Ldap Users option, the default value of ACL in Box connector would be a box user account, which is a email account (masolis@searchtechnologies.com). But if the group expansion needs to handle a Windows accounts (for example, if you are indexing in Sharepoint) instead of emails, you need to configure the LDAP server information that contains the definition of all Box accounts, then the Box group expansion would create a map between the windows account and the Box email.
Limitations
- Box connector crawls only the latest version of files.
- Box connector does not crawls any Trash items (folders or files)
Incremental limitations
- When there is change on a Box Note will not reflect in the incremental crawl.
Save your content source before creating or editing another one
Failing to save a content source before creating or editing another content source can result in an error.
ERROR [aspire]: Exception received attempting to get execute component command com.searchtechnologies.aspire.services.AspireException: Unable to find content source
Save the initial content source before creating or working on another.