Previously I have shared a search/Lookup component. But using that we can only search one object at a time. So today I am sharing a global search component. Using this we can search on multiple objects.
Here we are getting value when user change input. Currently it select few standard object and custom object, which are easily configurable. You can use custom setting to make object dynamic.
To display record detail I have used lightning:tag but we can also use lightning:recordForm to display object details.
You can find complete code on my github repo here.
Do you want to add anything let me know in comments section. Happy programming 🙂