I am wondering what algorithm does google use to make chrome browser's address bar to act as a default search bar for many websites like SO, Quroa etc. but not for facebook, metastackoverflow etc..
For example if you want to search for a topic in stackoverflow, you can do like this in chorme.
And the search results will directly take you to the stackoverflow page. i.e.
The same will happen if you choose to search quora.com
also in chrome's address bar. But this won't happen if you search like facebook.com
in the address bar and many other websites that have a search bar.
How is this happening? What algorithm does google use to make this happen?
Hope I am clear with my question? Any help would be appreciated.