Existing Repository - Existing Repository - Alfresco - Alfresco Search Enterprise - Alfresco/Alfresco-Search-Enterprise/4.2/Alfresco-Search-Enterprise/Administer/Alfresco-Elasticsearch-connector/Existing-Repository - 4.2 - 4.2

Alfresco Search Enterprise

Platform
Alfresco
Product
Alfresco Search Enterprise
Release
4.2
License
ft:lastPublication
2026-10-22T08:26:09.664000
ft:locale
en-US

When using a pre-populated Alfresco Repository, use the Elasticsearch connector applications in the following sequence:

  1. Ensure the Content Services Stack with SOLR, which is configured as the search subsystem, is running.
  2. Start the Elasticsearch server.
  3. Configure the Elasticsearch connector re-indexing app to point to the database, the Elasticsearch server, and the ActiveMQ server.
  4. Run the re-indexing app. Replace the connection details as appropriate. Replace the x.x.x in the name of the .jar file with the appropriate version number.
$ java -jar alfresco-elasticsearch-reindexing-x.x.x-app.jar \
--alfresco.reindex.jobName=reindexByIds \
--spring.elasticsearch.rest.uris=http://localhost:9200 \
--spring.datasource.url=jdbc:postgresql://localhost:5432/alfresco \
--spring.datasource.username=alfresco \
--spring.datasource.password=alfresco \
--spring.activemq.broker-url=tcp://localhost:61616?jms.useAsyncSend=true \
--alfresco.reindex.prefixes-file=file:reindex.prefixes-file.json

When completed successfully you will see:

o.a.r.w.ElasticsearchRepoEventItemWriter : Total indexed documents:: 80845
o.a.r.listeners.JobLifecycleListener     : Current Status: COMPLETED

Once the command has completed, metadata from any existing Repository nodes will be indexed in the Elasticsearch server. Additionally, the Elasticsearch connector live indexer will add existing content, which may take a while. Ensure ActiveMQ is available until all the content transformation request messages have been processed. Then change the Alfresco Repository configuration to use the Elasticsearch as the search subsystem and then re-start the Repository.

To ensure all the content transformation requests have been processed the ActiveMQ Web Console should be used. By default, the Web Console is available at http://127.0.0.1:8161 and accessed using default credentials. Any queues related to content transformation, usually through acs-repo-transform-request, should not have any pending messages.