The Elasticsearch connector Live Indexing component listens to messages from ActiveMQ. This means some initial information from Alfresco Repository must be indexed using the Re-indexing component. The Re-indexing component can also be used to index a pre-populated Alfresco Repository.
Note: Due to this application providing default values for
Alfresco Repository Database username and password, it’s strongly recommended you
set these credentials using the command line. This ensures database credentials
won’t be stored in the server filesystem.
java -jar alfresco-elasticsearch-reindexing-4.2.0-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 \ --alfresco.reindex.prefixes-file=file:reindex.prefixes-file.json \ --alfresco.acceptedContentMediaTypesCache.baseurl=http://localhost:8090/transform/config \ --spring.activemq.broker-url=nio://localhost:61616
When completed successfully you will see:
o.s.batch.core.step.AbstractStep : Step: [reindexByIdsStep] executed in 4s952ms o.a.r.w.ElasticsearchRepoEventItemWriter : Total indexed documents:: 845 o.a.r.listeners.JobLifecycleListener : Current Status: COMPLETED
Once the program has been executed, the existing Alfresco Repository nodes are available in Search Enterprise.