disable cortana and bing web search windows 10

Disable Windows 10 from searching the Web automatically

How to change the settings to prevent Windows 10 from searching the Web automatically when you search files on computer?