Hi @monish_gavali
Omnisearch works from below nodes which are marked as granite:InternalArea
You can find the code in these paths..
/libs/granite/ui/content/shell/omnisearch &
/libs/granite/ui/components/shell/omnisearch
Permissions: Make sure that the user you are using to perform the search has the necessary permissions to access the content in author. Check the user's permissions in the User Administration console.
Indexing: Check if the content is indexed properly in author. You can do this by going to the Query Debugger in the AEM author instance and running the same query that you are using in your code. If you get 0 results in the Query Debugger, then the content is not indexed properly.
Replication: Check if the content is replicated properly from publisher to author. If the content is not replicated properly, then it will not be available for search in author.
Search configuration: Check if the search configuration is the same in both publisher and author. Make sure that the search index is configured properly in both instances.
Code issues: Check if there are any code issues that are causing the search to fail in author. Make sure that the code is the same in both publisher and author.
https://experienceleague.adobe.com/docs/experience-manager-cloud-service/content/assets/manage/search-assets.html?lang=en#searchbehavior