Integrate Apache Solr with AEM

In this article I am going to explain how to integrate Apache Solr with AEM standalone instance, if you are new to Solr then I would recommend you to read below articles to get some idea on Solr

I hope you already installed Apache Solr by following the second link and created core directory, if you are not done then I would recommend  you to install Solr first

Apache Solr Integration with AEM

The first step is go to configMgr of AEM and select server type to remote Solr in Apache Jackrabbit Oak Solr server provider

servertype

Go to the RemoteSolrServerConfigurationProvider and enter Solr HTTP URL = “http://127.0.0.1:8983/solr/core_directory”, the core_directory is the core which you have created to index uploaded data

servertypeone

Go to the crx/de/index.jsp of aem instance and create a solrIndex node below the oak:index something like below

node namesolrIndex
primaryTypeoak:QueryIndexDefintion
typesolr
asyncasync

 

servertypetwo

 

You have successfully completed all configurations from AEM side, now perform search in Solr dashboard to check AEM content is indexed on not by simply hitting below Url and enter a keyword called geometrixx, if you see below dashboard by populating some records then the integration is successful

solrsearch