Hello all,
We want to replace AEM OOTB lucene index with remote solr, leverage it for all OOTB functionalities as the data we have in AEM is too high, AEM OOTB index data itself is going out of bounds and breaking.
We dont find any documentation aroung it, like how exactly to disable OOTB indexes, and configure remote solr, path restrictions, property restrictions etc..
Solved! Go to Solution.
Views
Replies
Total Likes
To replace the AEM OOTB Lucene index with a remote Solr server, you will need to:
You can download and install Solr from the Apache Solr website. Once Solr is installed, you will need to configure it. This includes setting up the Solr schema, creating a Solr core, and configuring Solr security.
To configure AEM to use the remote Solr server, you will need to edit the OakRepositoryConfig.xml
file. This file is located in the /WEB-INF/config/
directory of your AEM installation.
In the OakRepositoryConfig.xml
file, you will need to add the following configuration:
<searchProvider class="org.apache.jackrabbit.oak.solr.OakSolrProvider">
<server>http://localhost:8983/solr</server>
<core>aem</core>
</searchProvider>
To disable the AEM OOTB index, you will need to edit the org.apache.jackrabbit.oak.osgi.config.RepositoryConfigurationImpl
OSGi configuration. This configuration is located in the /etc/config/org.apache.jackrabbit.oak/
directory of your AEM installation.
In the org.apache.jackrabbit.oak.osgi.config.RepositoryConfigurationImpl
OSGi configuration, you will need to set the query.index
property to solr
.
You also have to think about Migrating your existing data to the remote Solr server.
Documentation:
Views
Replies
Total Likes
To replace the AEM OOTB Lucene index with a remote Solr server, you will need to:
You can download and install Solr from the Apache Solr website. Once Solr is installed, you will need to configure it. This includes setting up the Solr schema, creating a Solr core, and configuring Solr security.
To configure AEM to use the remote Solr server, you will need to edit the OakRepositoryConfig.xml
file. This file is located in the /WEB-INF/config/
directory of your AEM installation.
In the OakRepositoryConfig.xml
file, you will need to add the following configuration:
<searchProvider class="org.apache.jackrabbit.oak.solr.OakSolrProvider">
<server>http://localhost:8983/solr</server>
<core>aem</core>
</searchProvider>
To disable the AEM OOTB index, you will need to edit the org.apache.jackrabbit.oak.osgi.config.RepositoryConfigurationImpl
OSGi configuration. This configuration is located in the /etc/config/org.apache.jackrabbit.oak/
directory of your AEM installation.
In the org.apache.jackrabbit.oak.osgi.config.RepositoryConfigurationImpl
OSGi configuration, you will need to set the query.index
property to solr
.
You also have to think about Migrating your existing data to the remote Solr server.
Documentation:
Views
Replies
Total Likes