Install the Random Content Connector
The Connectors SDK comes with a sample connector to help you.
Random Content Connector
The Random Content connector generates a configurable number of documents with random titles and body fields.
This connector generates a configurable number of documents, all with random titles and body fields.
Quick start
-
Clone the repo:
git clone https://github.com/lucidworks/connectors-sdk-resources.git cd connectors-sdk-resources/java-sdk/connectors/ ./gradlew assemblePlugins
-
This produces one zip file, named
simple-connector.zip
, located in thebuild/plugins
directory. This artifact is now ready to be uploaded directly to Fusion as a connector plugin. -
See the following instructions on how to build, deploy, and run the plugin.
Connector properties
Random content generator properties
Property Name | Property description |
---|---|
Total |
The total number of documents to generate |
Minimum number of sentences |
The minimum number of sentences to generate per document, the random generator will use this value as lower bound to calculate a random number of sentences |
maximum number of sentences |
The maximum number of sentences to generate per document, the random generator will use this value as upper bound to calculate a random number of sentences |
How to use the connector
-
Create a configuration with the properties listed above.
-
After the first job is completed, the connector will index the same number of documents as defined in the
Random content generator properties.Total
property.