Support Resources

LucidWorks Forum
KnowledgeBase

LucidWorks Search v2.5

PDF Versions

Older Versions

LucidWorks 2.1
LucidWorks 2.0
LucidWorks 1.8

This is the documentation for the LucidWorks Search v2.5, the latest release. Go here for LucidWorks 2.1.

Skip to end of metadata
Go to start of metadata

LucidWorks Search allows crawling of databases using a JDBC driver compatible with your RDBMS. However,due to licensing constraints, LucidWorks does not ship with a suite of compatible drivers and they must be added to LucidWorks manually. The JDBC Drivers API allows you to upload drivers to LucidWorks Search. Drivers used with LucidWorks Search must be compliant with the JDBC 3 or JDBC 4 specification.

API Entry Points

/api/collections/collection/jdbcdrivers: get a list of JDBC drivers or upload a new one
/api/collections/collection/jdbcdrivers/filename: update, delete, or get file contents
/api/collections/collection/jdbcdrivers/classes: get a list of JDBC 4.0 compliant drivers

Get a List of JDBC Drivers

GET /api/collections/collection/jdbcdrivers

Input

Path Parameters

Key Description
collection The collection name

Query Parameters

None.

Input Content

None.

Output

Output Content

Key Type Description
filename string The driver filenames in a list

Return Codes

None.

Examples

Get a list of all the driver jar files installed in the system.

Input

curl 'http://localhost:8888/api/collections/collection1/jdbcdrivers'

Output

[
  "mysql.jar",
  "postgresql.jar"
]

Back to Top

Upload a New JDBC driver

POST /api/collections/collection/jdbcdrivers

You need to upload the JDBC driver using multipart/form-data file upload.

Input

Path Parameters

Key Description
collection The collection name

Query Parameters

None.

Input Content

file=driver filename

Output

Output Content
None.

Return Codes
204: (no content = success)
400: Bad Request (if form submit type is not multipart; if there is no "file" element in HTTP request; if file stream is empty)
409: Conflict (same file/driver already exists)

Examples

Upload the mysql.jar file to the system in order to support MySQL.

Input

curl -F file=@/path/to/mysql.jar http://localhost:8888/api/collections/collection1/jdbcdrivers

Output

None.

Back to Top

Delete a driver

DELETE /api/collections/collection/jdbcdrivers/filename

Input

Path Parameters

Key Description
collection The collection name
filename The driver filename

Query Parameters

None.

Input Content

None.

Output

Output Content

Key Type Description

Return Codes

204: (No content = success)

409: Not Found

Examples

Remove MySQL support.

Input

curl -X DELETE  'http://localhost:8888/api/collections/collection1/jdbcdrivers/mysql.jar'

Output
None.

Back to Top

Get a List of JDBC 4.0 Compliant Drivers

GET /api/collections/collection/jdbcdrivers/classes

Input

Path Parameters

Key Description
collection The collection name

Query Parameters

None.

Input Content

None.

Output

Output Content

None.

Return Codes

None.

Examples

Get a list of the JDBC classes available to datasources.

Input

curl 'http://localhost:8888/api/collections/collection1/jdbcdrivers/classes'

Output

[
  "com.mysql.jdbc.Driver",
  "oracle.jdbc.OracleDriver"
]

Back to Top

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.