Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

aem 6.4 solr integration

ajinkayk6258253
Level 3
Level 3

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

7 Replies
aemmarc
Employee
Employee

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>

----

joeb21688728
Level 4
Level 4

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 

Amit-Tiwari
Level 3
Level 3

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>

ajinkayk6258253
Level 3
Level 3

<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>

ajinkayk6258253
Level 3
Level 3

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

ajinkayk6258253
Level 3
Level 3

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