Elastic Indexer

The Elastic Indexer is a command line task runner that synchronizes the Colectica Repository items with an Elasticsearch index.


The Elastic Indexer requires .NET 5 to be installed.

  1. Download and install the Windows .NET Runtime 5.0.x from https://dotnet.microsoft.com/download/dotnet/5.0

Deploy the Elastic Indexer

  1. First, make sure Colectica Repository and Colectica Portal are installed.

  2. Populate Colectica Repository with metadata.

  3. Download the Elastic Indexer package. This will be named ColecticaElasticIndexer-version.zip and should be included with your Colectica Portal delivery.

  4. Before extracting the Elastic Indexer package, make sure Windows does not have the file blocked. To check this:

    1. In Windows Explorer, right click the Zip file and choose Properties.

    2. Near the bottom of the Properties window, in the Security area, see if there is a checkbox labeled Unblock.

    3. If there is an Unblock checkbox, check the box and click OK.

    4. If there is no such checkbox, proceed to the next step.

  5. Extract the contents of the Elastic Indexer package. In this documentation, the directory to which you extract the file will be referred to as ElasticIndexerDir\.

Configure the Elastic Indexer

  1. Navigate to ElasticIndexerDir\.

  2. If there is not a file named appsettings.json, then copy the appsettings.json.dist file to appsettings.json.

  3. In the appsettings.json file, update the following settings.

    Data - DefaultConnection - ConnectionString

    The full connection string of the database to use to store authentication tables, when using Colectica Portal’s built in user management.

    Data - ColecticaRepository - ConnectionString

    The full connection string of the Colectica Repository database.

    Elasticsearch - Host

    The hostname of the Elasticsearch service.

    Elasticsearch - IndexName

    A prefix for any Elasticsearch indices that will be created


    The ConnectionString and Elasticsearch settings should match the settings in the Colectica Portal configuration.

Run the Elastic Indexer

  1. Open a command shell and navigate to ElasticIndexerDir\.

  2. Run the following command:



Depending on the size of your data, the Elastic Indexer may take a long time to run during the initial ingest. Subsequence runs will only index new content.

Reoccurring task for the Elastic Indexer

  1. The Elastic Indexer should be run periodically to index new documents using the Windows Task Scheduler. An interval of 5 minutes is recommended for near real time indexing.


For more information about Windows Task Scheduler, see https://docs.microsoft.com/en-us/windows/win32/taskschd/task-scheduler-start-page