I am on SharePoint 2013.
A web application's URL is set as http://a.com in both web app and site collection. The default is set up as http://a.com. This site can only be accessed by https://b.com. AAM is set as https://b.com > Intranet(Zone) > https://b.com
The search was set to crawl http://a.com and as a.com was not accessible it was failing. So now when I changed to https://b.com, the crawl completed successfully but when I search, with query as (path:https://b.com), it does not show any result. I did quick mode and set as this site collection, it does not show any result. If I search with complete environment, I do get results from the site.
How do I fix the search path so that i can enable search this site only. Also the search on list and library is not working if I search from find an item box on List.