AEM Solr Index how to prevent the entire repo being indexed? | Community
Skip to main content
Level 4
July 21, 2016
Solved

AEM Solr Index how to prevent the entire repo being indexed?

  • July 21, 2016
  • 2 replies
  • 1100 views

I have setup my first solr Index but I only want to index a portion of the repository eg /content/mysite/page/* so anything below the page node. However I seem to of indexed the entire repo. I added the following to my index node:

includedPaths as a String and set it to /content/mysite/page but it does not seem to of had any effect and everything has been indexed! 

 

Also another issue I have run in to is that the logs are filling up with warnings, seemingly when trying to talk to my remote zookeeper instance:  

21.07.2016 14:37:40.308 *WARN* [aysnc-index-update-async-SendThread(172.17.0.4:2181)] org.apache.felix.jaas No JAAS module configured for realm Client

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 smacdonald2008

I asked support about this and they stated: 

Solr indexes don’t support the includedPaths property and by default oak solr indexes index everything.  To restrict a Solr index by path they should make sure they are on the latest Oak hotfix and create the solr oak index definition under the path they want to index, for example /content/mysite/oak:index/solrIndex

2 replies

smacdonald2008
smacdonald2008Accepted solution
Level 10
July 21, 2016

I asked support about this and they stated: 

Solr indexes don’t support the includedPaths property and by default oak solr indexes index everything.  To restrict a Solr index by path they should make sure they are on the latest Oak hotfix and create the solr oak index definition under the path they want to index, for example /content/mysite/oak:index/solrIndex

Sutty100Author
Level 4
July 22, 2016

Perfect thanks!