Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
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?

Avatar

Level 3

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?

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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

 

Hope this could help you.

Regards!

Shiv

 

Shiv Prakash

View solution in original post

3 Replies

Avatar

Community Advisor

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

Avatar

Community Advisor

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

Avatar

Correct answer by
Community Advisor

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

 

Hope this could help you.

Regards!

Shiv

 

Shiv Prakash