aem 6.4 solr integration

Avatar

Avatar

ajinkayk6258253

Avatar

ajinkayk6258253

ajinkayk6258253

11-07-2019

Hi all,

im working on solr aem integration and my bundle is in installed state as some of the dependencies are not resolved and as im searching for them in depfinder .it's showing no naven dependency??  i think it is transitive dependency of

<dependency>
  <groupId>org.apache.servicemix.bundles</groupId>
  <artifactId>org.apache.servicemix.bundles.solr-solrj</artifactId>
  <version>7.5.0_1</version>

</dependency>

as i change version of above dependency the below highlighted dependency version changes. pls help

1788858_pastedImage_0.png

Replies

Avatar

Avatar

hamidk92094312

Employee

Avatar

hamidk92094312

Employee

hamidk92094312
Employee

11-07-2019

You may want to check this post that talks about similar issue:

Error: Solr Integration with AEM 6.4

Avatar

Avatar

aemmarc

Employee

Avatar

aemmarc

Employee

aemmarc
Employee

11-07-2019

Solr 7x, 8x are not supported in AEM.

This all sort of hinders on the underlying version of Lucene that's being used.

Even the latest version of jackrabbit-oak is using Solr 6.6.6 / Lucene 4.7.1

See : https://github.com/apache/jackrabbit-oak/blob/d665e3c3eba82bad0baf7122bdeda507bbb1bfb4/oak-parent/po...

    <lucene.version>4.7.1</lucene.version>

    <solr.version>6.6.6</solr.version>

----

Avatar

Avatar

joeb21688728

Avatar

joeb21688728

joeb21688728

11-07-2019

Adobe released an Article and video that shows this working. You write Java code to actually interact with SOLR (this uses 6.4 and SOLR 6.2)

Adobe Experience Manager Help | Integrating SOLR with Adobe Experience Manager 6.4 

Avatar

Avatar

amitkrt

Avatar

amitkrt

amitkrt

12-07-2019

Silly question but have you embed your dependency in your core pom?

Something like this

<app.bundle-embed-dependency>

solr-solrj,

zookeeper,other dependency;inline=true</app.bundle-embed-dependency>

Avatar

Avatar

ajinkayk6258253

Avatar

ajinkayk6258253

ajinkayk6258253

12-07-2019

@amitkrt thanks for your polite reply. but unfortunately yes, i have added embed-dependeny in core pom under  plugin with artifiactid maven-bundle-plugin

Avatar

Avatar

ajinkayk6258253

Avatar

ajinkayk6258253

ajinkayk6258253

12-07-2019

<plugin>
  <groupId>org.apache.felix</groupId>
  <artifactId>maven-bundle-plugin</artifactId>
  <extensions>true</extensions>
  <configuration>
  <instructions>
   <!-- Import any version of javax.inject, to allow running on multiple versions of AEM -->
   <Import-Package>javax.inject;version=0.0.0,!com.ibm.*,

  !com.sun.*,

  !javax.jmdns.*,

  !javax.jms.*,

  !jline.*,

  !org.jboss.netty.*,

  !org.relaxng.datatype.*,*

   </Import-Package>
  <Embed-Dependency>*;scope=compile|runtime</Embed-Dependency>
  <Embed-Directory>OSGI-INF/lib</Embed-Directory>
  <Embed-Transitive>false</Embed-Transitive>
  <Sling-Model-Packages>
   com.solr.test.core

   </Sling-Model-Packages>
  </instructions>
  </configuration>
</plugin>

Avatar

Avatar

ajinkayk6258253

Avatar

ajinkayk6258253

ajinkayk6258253

12-07-2019

there was a typo in pom file ... issue has been resolved ..thanks everyone for replying