> ## Documentation Index
> Fetch the complete documentation index at: https://doc.lucidworks.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Simple Demo Connector

export const LwTemplate = ({title = "Key questions to get you started", icon = "sparkles", cta = "Powered by Agent Studio", linkHref = "https://lucidworks.com/demo/?utm_source=docs&utm_medium=referral&utm_campaign=docs_cta_ai"}) => {
  const [isLoaded, setIsLoaded] = useState(false);
  useEffect(() => {
    const timer = setTimeout(() => {
      setIsLoaded(true);
    }, 500);
    return () => clearTimeout(timer);
  }, []);
  return <div className="lw-template-container">
      <Card title={title} icon={icon}>
        {isLoaded && <span dangerouslySetInnerHTML={{
    __html: `<lw-template id="a029c1a9-28be-427e-b0e1-5d918920246a"></lw-template
            >`
  }} />}
        <Link href={linkHref} className="agent-studio-link text-left text-gray-600 gap-2 dark:text-gray-400 text-sm font-medium flex flex-row items-center hover:text-primary dark:hover:text-primary-light group-hover:text-primary group-hover:dark:text-primary-light">Powered by Lucidworks Agent Studio</Link>
      </Card>
    </div>;
};

[localhost link]: http://localhost:3000/docs/5/fusion/dev-portal/connectors-sdk/simple-demo-connector

[mintlify link]: https://doc.lucidworks.com/docs/5/fusion/dev-portal/connectors-sdk/simple-demo-connector

[old doc.lw link]: https://doc.lucidworks.com/fusion/5.9/cbcyor

This connector generates a configurable number of documents, all with random titles and body fields.

<LwTemplate />

## Quick start

1. Clone the repo:

   ```
   git clone https://github.com/lucidworks/connectors-sdk-resources.git
   cd connectors-sdk-resources/java-sdk/connectors/
   ./gradlew assemblePlugins
   ```

2. This produces one zip file, named `simple-connector.zip`, located in the `build/plugins` directory.\
   This artifact is now ready to be uploaded directly to Fusion as a connector plugin.

3. See the [instructions](https://github.com/lucidworks/connectors-sdk-resources/tree/main/java-sdk) 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.
