To turn off indexing, open the Indexing Options Control Panel window (you can also just type index in the Start button search box, and you should see Indexing Options at
the top of the result list), click Modify and remove locations being indexed and file types, too.