This is set by Google, it is not achieved by any process. If your site has a certain authority, has a reasonable index number and the searched word is directly related to your site (a search result such as sitename, sitename.com) and you have not used a tag such as <meta name="google" content="nositelinkssearchbox"> in your meta tags, your site The search box will appear in the focused search result.