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
Jun 29, 2022 11:21 AM UTC
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?

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.
Shiv_Prakash_Patel
Shiv_Prakash_PatelAccepted solution
New Participant
Jun 30, 2022 12:29 PM UTC

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

3 replies

Shiv_Prakash_Patel
Shiv_Prakash_PatelAccepted solution
New Participant
Jun 30, 2022 12:29 PM UTC

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

 

Translate
Shiv Prakash
SantoshSai
New Participant
Jun 30, 2022 3:36 AM UTC

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

Translate
Santosh Sai
arunpatidar
New Participant
Jun 29, 2022 5:20 PM UTC

Hi,

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

Translate
Arun Patidar