In earlier versions of OSX, when you search in a Finder window, it gave you the choice of searching by contents or file name. In Lion this choice seems to have disappeared, I can only search by content now. Is there any way to search by name in Lion?
MacOS – Searching by file name (as opposed to name and contents) in Lion
findermacossearchspotlight
Related Question
- MacOS – How to locate a file in Spotlight using folder and file name
- Spotlight doesn’t find the contents of at least one file
- Mac – How to force Spotlight to index content inside a package
- MacOS – How Finder can find this file with long name
- MacBook – Finder search *only* searches file-names (Macbook Air, El Capitan)
- Finder and Spotlight not returning the expected results when searching
Best Answer
If you've already run the search and want to alter the search to only look for files with your search term in the filename, you can click the '+' button just beneath the search box and change the search type from there. See screenshots below:
Mike Scott has nice suggestions from the comments that are worth incorporating here to use the name: selector in spotlight.
You can prefix your search with
name:
as shown belowThis results in a window which you can select 'Filename' or 'Everything' from if you click the button labelled 'name' in the search box as shown below: