How to develop the search component in AEM.
If any one developed please share the code so that i can utilize.
You can use the following components as reference:
- Search component under General Category
- Search component under the we-retail category
- Core Components search component
 Releases · adobe/aem-core-wcm-components · GitHub
There is a tutorial that is based on SOLR located at 
0. Adobe Experience Manager Help | Integrating SOLR with Adobe Experience Manager 6.4
You might want to review the WKND tutorial - a multi-part tutorial designed for developers new to Adobe Experience Manager: WKND Tutorial Overview
In Chapter 7 it covers a headers design including a search component 7 - Header and Footer
A complete solution is available on GitHub, hence you can adapt it for your project.