AEM 6.3 and solr integration | Community
Skip to main content
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
smacdonald2008
smacdonald2008Accepted solution
Level 10
Jun 13, 2017 8:58 PM UTC

After I made this Java change in the SolrSearchServiceImpl class - it works.

We will write the AEM 6.3 article this week that captures all steps...

7 replies

Level 2
Feb 7, 2019 4:31 PM UTC

What is Adobe recommendation to integrate solr out of these two:

Solr as oak index or AEM with solr as rest based integration.

Translate
New Participant
Dec 6, 2017 6:58 AM UTC

I have one question. Why is the SolrServerConfiguration and corresponding impl custom created in code when we have OOTB 'Apache Jackrabbit Oak Solr remote server configuration' available?

Translate
anilkum
anilkumAuthor
Level 4
Jun 14, 2017 12:31 PM UTC

Thanks Scott,

We faced another issue with one of SolrUtil method when indexing we.retail site.

Regards,

Anil

Translate
smacdonald2008
smacdonald2008Accepted solution
Level 10
Jun 13, 2017 8:58 PM UTC

After I made this Java change in the SolrSearchServiceImpl class - it works.

We will write the AEM 6.3 article this week that captures all steps...

Translate
smacdonald2008
Level 10
Jun 13, 2017 8:27 PM UTC

Issue with Java code is it uses this call to get a session:

//Cannot get session like this in AEM 6.3

session = repository.loginAdministrative(null);

We are updating to this:

Map<String, Object> param = new HashMap<String, Object>();

  param.put(ResourceResolverFactory.SUBSERVICE, "datasolr");

  ResourceResolver resolver = null;

  try {

  

  //Invoke the adaptTo method to create a Session used to create a QueryManager

     resolver = resolverFactory.getServiceResourceResolver(param);

     session = resolver.adaptTo(Session.class);

I am testing & updating article.

Translate
smacdonald2008
Level 10
Jun 13, 2017 1:42 PM UTC

That is because the article is for AEM 6.2. We have not updated that community article for 6.3.

Translate
Level 2
Jun 13, 2017 1:39 PM UTC

The questions in itself is not very clear, could you please elaborate about the problem? I assume that you are using same data set for testing the search, on AEM 6.2 as well as AEM 6.3 with Solr. When you say, AEM 6.3 doesn't give expected results, does it throw any exceptions or does it return empty results or does it return wrong results? Also, please post any relevant log errors, if any.

Translate