How to make a Google search box? | Weboptim
Google's view is that when people search for a particular company, they want to search for something specific on the website.
In the organic results list you can therefore sometimes find so-called, search engine with boxesthat help users access our content more easily. In general, the brand name or URL such results appear when you type.

When will it be published?
For example, if you're looking for a patterned mobile phone case, but you don't remember the exact URL, but only know that you found it on Vatera, simply type "vatera" into Google and search for the product in the search box.
This allows users to search without being redirected to the website. The search box can direct visitors to the page of the website containing the search results.
However, the boxes will only appear if Google relevant find them - the algorithms determine when to appear and when not to appear based on a number of factors.
A couple of weeks ago, a new feature was introduced: the new search boxes in Google even more highlights, and already authorises the 'automatic addition' function.

How to have your own search box?
Step 1 - install a search engine on your website
A search engine collects the search queries of our users.
Step 2 - Placing schema.org on the site
An special code (JSON-LD) in the source code of the page in order to capture the data.
Step 3 - Google crawling
You have to wait until Google's search algorithms identify our newly installed search engine.
Some tips
1. Place rel="canonical" tag for all elements of the main page. This helps Google to select the right URL.
2. A robots.txt file to prevent the site from crawling search results.
3. Make sure that your server supports the UTF-8 character encoding.
Most importantly..
The code is used accurately and correctly.
If properly integrated into your website, users will be taken directly to a sub-page of your website containing the search results when they search (but if Google does not detect the tag, the search results may not appear as they did before - this can cause minor or major problems).