Optimize Cortana in Searching Local files and Folders

Problem description

When I used the Cortana, the personal assistant of Windows 10, I found that it is confusing that searching
function worked badly sometimes but well sometimes. To improve my productivity, I googled this problem and
encounter a good solution.