Multi threaded document importer from server file system
Build/install
From Nuxeo Marketplace
The Bulk document importer v. 1.0.0 is available from the Nuxeo Marketplace.
By hand
Its source code lives at https://github.com/nuxeo/nuxeo-platform-importer
Build with: mvn package -Dmaven.test.skip=true
And deploy the two jars from the target subfolder into the nuxeo.ear/plugins or nxserver/bundles folder of your nuxeo server (and restart).
Usage
The file importer comes as a Java library (with nuxeo runtime service) and a sample JAX-RS interface to launch, monitor and abort import jobs.
To import the folder '/home/ogrisel/Documents' into the workspace /default-domain/workspaces/my-workspace while monitoring the import logs from a REST client use the following HTTP GET queries:
To execute those HTTP queries you can either use a browser with an active Nuxeo session (JSESSIONID cookie) or use a third party stateless HTTP client with HTTP Basic Authentication, eg with the curl command line client:
Don't forget to quote the URL if it includes special shell characters such as '&'.
You can also use the generic HTTP GUI client from the rest-client java project.
Don't forget to fill in the 'Auth' tab with your user credentials.
For developers
If you want to programmatically reuse or extend multi-threaded import on a Nuxeo repository, look at How to use Nuxeo Platform Importer Core.