Configure search engine to use Elasticsearch for federated search

November 14, 2023

Follow academy documentation to set-up your Elasticsearch provider (you can reuse the connection created previously).

Then you need to edit the file [JAHIA-PATH]/digital-factory-data/karaf/etc and open file org.jahia.services.search.provider.elasticsearch.cfg
Then find the line (org.jahia.services.search.provider.elasticsearch.content.indexedMainResourceTypes) in the file make sure the content under that line is “jnt:page” add a “, \” and on the next line add “ciont:product” and save the file, the section in the file should like this:

org.jahia.services.search.provider.elasticsearch.content.indexedMainResourceTypes = \    
    jnt:page, \  
    ciont:product

File changes are reloaded automatically, no need to restart your Jahia.