[SalesForce] Napili template standard search event

Are there standard events to capture the search term entered and search button clicked in the standard Napili template so that I can get search term entered and build my own lightning component with search term entered ?

Please see attached screenshot .Basically the aim is to capture the standard lightning event thats been published when user clicked search term on the header and call an API with search term entered ?

enter image description here

Best Answer

I had to get on a call with Salesforce Engineer to really understand this .This is what we concluded

We can create a design file for the lightning components and use the same merge values as other components use on the page .In this case i can simple go to the Search detail page and check the standard context variable

enter image description here

In the above screenshot I have variables like "{!searchString}" and "{!topicName}" .I will need a design file for these attributes and community admin needs to use the same strings so that my lightning component can access it .

Here is a blogpost i wrote on this topic with some detail insight

http://cloudyworlds.blogspot.com/2016/01/customizing-napili-template-of-sfdc-for.html