Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

How to push data(/content/dam/*) in solr after publishing from author to publish? Do we need to configure any setting in configMgr?

Avatar

Level 3

How to push data(/content/dam/*) in solr after publishing from author to publish?
Do we need to configure any setting in configMgr?

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

@kumamanish For finding any file in AEM, check in CRXDE Lite for OOTB.

The file can be find in the CRDE Lite in the below location.

http://localhost:4502/crx/de/index.jsp#/libs/cq/gui/components/common/wcm/clientlibs/wcm/js/quickpub...

shaileshbassi_0-1656580566127.png

Thanks

View solution in original post

7 Replies

Avatar

Community Advisor

@Rohit4 Please refer to the link https://medium.com/@codeandtheory/getting-started-solr-indexing-in-aem-6-3-d56fde934396 which provides the details about the way from creating the Apache Solr server to push the index in the Apache Solr Server.

Hope this helps!

Thanks

Avatar

Level 3

@ShaileshBassi 

Thanks for your reply,

But I was expecting when we do quick publish through author ui at the same time it should index data in solr also without any manual api call.

Below is required scenerio:

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 2

Hi @ShaileshBassi ,

 

Thanks for your help but I do have same requirement( @Rohit4 ), at the time of quick publish from ui it should communicate solr for data indexing, I don't want to call any other separate call for indexing.

 

Below link says we should call a separate servlet for index.
https://medium.com/@codeandtheory/getting-started-solr-indexing-in-aem-6-3-d56fde934396

Avatar

Community Advisor

@kumamanish for this requirement a custom javascript can be created and for that the reference can be taken from "/libs/cq/gui/components/common/wcm/clientlibs/wcm/js/quickpublish.js"

and with the same or another other clientlib category that is getting called on that screen load.

(function(window, document, $, URITemplate) {
    $(document).on("foundation-contentloaded", function (e) {
    //custom code for indexing
    });
})(window, document, Granite.$, Granite.URITemplate);

Thanks

Avatar

Level 2

Appreciate your help @ShaileshBassi ,

 

Not sure how I should go to that particular place for quickpublish.js file, I have AEM-6.5.jar and after extracting I have below structure.

 
 

aem-author.JPG

 
 

I tried to find those files at above location but no luck.

 

Can you please help me here to find that path.

 

Avatar

Correct answer by
Community Advisor

@kumamanish For finding any file in AEM, check in CRXDE Lite for OOTB.

The file can be find in the CRDE Lite in the below location.

http://localhost:4502/crx/de/index.jsp#/libs/cq/gui/components/common/wcm/clientlibs/wcm/js/quickpub...

shaileshbassi_0-1656580566127.png

Thanks

Avatar

Level 2

Thanks @ShaileshBassi , Above helped me, if need any further help I will reach to you.