Solr as an Oak Index | Community
Skip to main content
Level 2
August 9, 2023
Solved

Solr as an Oak Index

  • August 9, 2023
  • 1 reply
  • 569 views

Hi,

 

We're trying to integrate solr with AEM . We're following solr as an oak index approach. Followed steps mentioned on https://experienceleague.adobe.com/docs/experience-manager-65/deploying/deploying/queries-and-indexing.html?lang=en . I was able to index data at '/' level by creating solr type index.

 

 

How do i restrict it by paths ? i want to index all content under /content/dam/* to a solr collection.

 

I do see below option in solr query configuration 

 

Use for path restrictions

If set to true the Solr index will be used also for filtering nodes by path restrictions.

Default is ‘false’. Need help in where exactly  we need to mention the path 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Harwinder-singh

@sonali_d I think this should be the includedPaths property that you need to add to the  oak:QueryIndexDefinition node.

 

Use for Path restrictions is disabled by default and you can enable the same by modifying the following configuration from the system console :

org.apache.jackrabbit.oak.plugins.index.solr.osgi.OakSolrConfigurationProviderService.

1 reply

Harwinder-singh
Community Advisor
Harwinder-singhCommunity AdvisorAccepted solution
Community Advisor
August 17, 2023

@sonali_d I think this should be the includedPaths property that you need to add to the  oak:QueryIndexDefinition node.

 

Use for Path restrictions is disabled by default and you can enable the same by modifying the following configuration from the system console :

org.apache.jackrabbit.oak.plugins.index.solr.osgi.OakSolrConfigurationProviderService.