11-16-2022 06:52 AM
1> Install Elastic Search
wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.9.2-x86_64.rpm
rpm -ivh elasticsearch-7.9.2-x86_64.rpm
chmod -R 755 /etc/elasticsearch
systemctl enable elasticsearch.service
systemctl start elasticsearch
curl -X GET 'http://localhost:9200'
2> Install Elastic Search Connector
2.1> Extract "ns prefix mapping file" from existing ASC Server by enabling Simple JAR modules.
sudo -u tomcat mkdir -p /opt/tomcat/apache-tomcat-9.0.68/modules/platform
cp /alfresco/package/web-server/conf/Catalina/localhost/alfreso.xml
edit alfreso.xml to set correct path for property "PostResources"
chown tomcat: /opt/tomcat/apache-tomcat-9.0.68/conf/Catalina/localhost/*
download re-index mapping jar file from
"https://github.com/AlfrescoLabs/model-ns-prefix-mapping/releases/download/1.0.0/model-ns-prefix-mapp..."
transfer the jar file to "/opt/tomcat/apache-tomcat-9.0.68/modules/platform"
chown tomcat: model-ns-prefix-mapping-1.0.0.jar
save the content from "http://192.168.1.16:8080/alfresco/s/model/ns-prefix-map" to "reindex.prefixes-file.json" file
2.2> Extract and Execute Re-Indexing App
download "alfresco-elasticsearch-connector-distribution-3.1.0.zip" from https://community.hyland.com/customer- portal/5097/downloads/secure
sudo -u tomcat mkdir /alfresco/elasticSearh-connector
unzip alfresco-elasticsearch-connector-distribution-3.1.0.zip -d /alfresco/elasticSearh-connector
transfer the json file "reindex.prefixes-file.json" to "/alfresco/elasticSearh-connector" and change ownsership to tomcat
chown tomcat: *
chmod 665 *
java -jar alfresco-elasticsearch-reindexing-3.1.0-app.jar --alfresco.reindex.jobName=reindexByIds --spring.elasticsearch.rest.uris=http://localhost:9200 --spring.datasource.url=jdbcostgresql://localhost:5432/alfresco --spring.datasource.username=alfresco --spring.datasource.password=alfresco --alfresco.reindex.prefixes-file=file:reindex.prefixes-file.json --spring.activemq.broker-url=nio://localhost:61616
*Note: On successfull execution it will display how many documents are indexed.Re-Index App 2.3> Start Live-indexing App on port 8083
java -jar alfresco-elasticsearch-live-indexing-3.1.0-app.jar --server.port=8083 --spring.activemq.broker-url=nio://localhost:61616 --spring.elasticsearch.rest.uris=http://localhost:9200 --alfresco.sharedFileStore.baseUrl=http://localhost:8099/alfresco/api/-default-/private/sfs/versions/1/file/ --alfresco.acceptedContentMediaTypesCache.baseurl=http://localhost:8090/transform/config--elasticsearch.indexName=alfresco >live-index.log 2>&1 &
3> Configure ACS with Elastic Search
Configure "search service" in ACS Admin Console as below
Explore our Alfresco products with the links below. Use labels to filter content by product module.