Skip to main content

Database

JDBC Connector that uses the same concept as sqoop, to create complex queries and map attributes to index based on the result.

Installation

Go to https://viglet.org/dumont/download/ and click on "Integration > Database Connector" link to download the dumont-jdbc.jar.

Usage

java -jar /appl/viglet/dumont/jdbc/dumont-jdbc.jar <PARAMETERS>

Parameters

ParameterDescription
--connectJDBC connection string
--driverJDBC driver class name
--querySQL query to execute
--siteSemantic Navigation Site name
--localeLocale for indexing
--chunkNumber of rows per chunk
--serverDumont DEP server URL
--api-keyAPI Key for authentication
--file-path-fieldField containing file paths
--file-content-fieldField for file content
--file-extension-fieldField containing file extensions
--file-size-fieldField containing file sizes
--multi-valued-separatorSeparator for multi-valued fields
--remove-html-tags-fieldFields from which to remove HTML tags

Example

java -jar /appl/viglet/dumont/jdbc/dumont-jdbc.jar \
--connect "jdbc:mysql://localhost:3306/mydb" \
--driver "org.mariadb.jdbc.Driver" \
--query "SELECT id, title, content, url FROM articles" \
--site "Sample" \
--locale "en_US" \
--chunk 100 \
--server "http://localhost:2700" \
--api-key "your-api-key"