Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
SOLVED

Configuring solr indexing with remote solr server

Avatar

Level 5

We have integrated a remote solr server using the guidelines given at 

http://docs.adobe.com/docs/en/aem/6-0/deploy/upgrade/queries-and-indexing.html

The entire jcr nodes were indexed.

However We want to be able to index only particular path under which our product data resides(eg /content/products) not entire repository.

Could anyone guide on how to configure the same.

Thanks in advance.

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

This configuration is meant for indexing OAK repository so all the index configurations defined in crx will be used for indexing the JCR nodes. Even though you can define in crx which node paths to index but if you remove all the indexes and just keep /content/products then your repository will slow down terribly. So, I guess for your use case (if you don't want to index JCR nodes in the remote solr) it will be better of to use a remote solr server and index the contents using a custom method which won't use the oak repository indexes. For reference see this project - https://github.com/headwirecom/aem-solr-search 

View solution in original post

1 Reply

Avatar

Correct answer by
Employee Advisor

This configuration is meant for indexing OAK repository so all the index configurations defined in crx will be used for indexing the JCR nodes. Even though you can define in crx which node paths to index but if you remove all the indexes and just keep /content/products then your repository will slow down terribly. So, I guess for your use case (if you don't want to index JCR nodes in the remote solr) it will be better of to use a remote solr server and index the contents using a custom method which won't use the oak repository indexes. For reference see this project - https://github.com/headwirecom/aem-solr-search