How to automatically push data(/content/dam/*) in solr after click on Quick publish button(Manage Publication) from author to publish in AEM 6.5.12 version ? Do we need to configure any setting in configMgr? | Community
Skip to main content
Level 2
June 29, 2022
Solved

How to automatically push data(/content/dam/*) in solr after click on Quick publish button(Manage Publication) from author to publish in AEM 6.5.12 version ? Do we need to configure any setting in configMgr?

  • June 29, 2022
  • 3 replies
  • 865 views

How to automatically push data(/content/dam/*) in solr after click on Quick publish button(Manage Publication)
from author to publish in AEM 6.5.12 version ? Do we need to configure any setting in configMgr?

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 Shiv_Prakash_Patel

Hi @rohit4 

You can use Replication Event Listener for events triggering on a click of the Quick Publish button and SolrClient for indexing the data to Solr.

Please refer this article for full implementation - https://unlocklearning.in/solr-indexing-by-replication-event-listener/ 

 

Some other helpful links as below:

https://helpx.adobe.com/uk/experience-manager/kb/ReplicationListener.html 

https://gist.github.com/kuckmc01/8fa10234dc3dbc55447adf1b621c2ed9

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/event-filter-is-not-working/td-p/374009

 

Hope this could help you.

Regards!

Shiv

 

3 replies

arunpatidar
Community Advisor
Community Advisor
June 29, 2022

Hi,

You need to create an event listener on replication event, which will push the content to Sonr whenever there is a publication.

Arun Patidar
SantoshSai
Community Advisor
Community Advisor
June 30, 2022

Hi @rohit4 ,

When you sync AEM with remote SOLR a separate document will create for each AEM node. So would be the best option to create custom Service/Component to bulk load all content pages to solr.

  • You can use AEM's query API to extract page content to get id, title, description and path. For description field you can do tree traversal to extract property values and created space delimited description text field.
  • Use solrj to then add documents to solr.

Hope that helps!

Regards,

Santosh

Santosh Sai
Shiv_Prakash_Patel
Community Advisor
Shiv_Prakash_PatelCommunity AdvisorAccepted solution
Community Advisor
June 30, 2022

Hi @rohit4 

You can use Replication Event Listener for events triggering on a click of the Quick Publish button and SolrClient for indexing the data to Solr.

Please refer this article for full implementation - https://unlocklearning.in/solr-indexing-by-replication-event-listener/ 

 

Some other helpful links as below:

https://helpx.adobe.com/uk/experience-manager/kb/ReplicationListener.html 

https://gist.github.com/kuckmc01/8fa10234dc3dbc55447adf1b621c2ed9

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/event-filter-is-not-working/td-p/374009

 

Hope this could help you.

Regards!

Shiv

 

Shiv Prakash