Questions tagged [search]

The act of searching for data by providing keywords which are either checked directly against contents, or against a search index in order to provide relevant results.

Filter by
Sorted by
Tagged with
50
votes
8answers
140k views

How Can I Search A Specific Type of File in Mac?

Is there any way to search a specific type of file using Spotlight? I remember there was a special command or something that I had to put in front of the search phrase but I cannot remember it now. ...
44
votes
1answer
7k views

Set the default search to current folder?

The Finder's search bar is an integral part of my workflow. I am constantly using it to search the contents of files within various folders. However, typing into this bar always searches the entire ...
42
votes
4answers
10k views

Xcode doesn't show up in spotlight results, neither search results

I haven't noticed exactly when it happened but previously I was always using spotlight to run Xcode. Now if i'm typing "Xcode" in it, only folders containing this name show up, or some xcode projects, ...
26
votes
4answers
12k views

Search not working in Preview.app

Viewing a pdf with Preview, I do cmdF to bring up a search box and then enter a word and hit enter. Basically nothing happens even if it's a word that's obviously present. Sometimes if I smash my ...
24
votes
6answers
34k views

Why is iOS unable to find my apps?

Since updating to iOS 11, search is unable to find my apps. Is this a new feature of iOS 11; a bug; or something that will eventually resolve itself over time? I have so many apps that the only ...
23
votes
3answers
4k views

How do I get a lone missing app to appear in Spotlight searches?

When I enter a string that matches part of the name of an application on Mac, the OS X Spotlight search feature will suggest apps for me to launch. This works for every app except one: Mathematica: ...
22
votes
7answers
9k views

How can I create a Saved Search that excludes a specific folder from the results?

I'm trying to set up a Saved Search of my Mac that will exclude files in a folder called 'XYZ' from the search results. The reason is because I'm getting a ton of false positives from that folder that ...
19
votes
6answers
48k views

Searching by file name (as opposed to name and contents) in Lion

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 ...
19
votes
1answer
15k views

How to search a phrase in Preview of OS X?

When I search for a term like "formation water", preview returns everything starting with formation and not the term "formation water". How can I search for a phrase in Preview?
18
votes
3answers
49k views

Weird problems with Safari: search bar and tabs

Suddenly Safari is having weird problems: The search bar is no more searching: I can type URLs but the suggestions are not appearing and queries are not sent to Google (or any other search engine I ...
18
votes
2answers
9k views

“Search in Google” always open Safari instead of default browser

I want to make the Search in Google context menu to open my default browser instead of Safari.
16
votes
2answers
14k views

How to make 'grep' work like in Ubuntu?

I tried to use grep to match one pattern on the terminal, but n o any result comes out. $ grep -R 'networks' grep: warning: recursive search of stdin I knew grep on macOS is based on BSD while grep ...
16
votes
1answer
20k views

Use find in Terminal to remove directories and files of same search parameter

If I type the following into Terminal, it will remove all files that meet the search parameter: sudo find . -type f -name "*Xilisoft*" -exec rm -rf {} \; Then if I start again and type it with d ...
14
votes
2answers
6k views

Does Spotlight keep a search history?

Occasionally, I use Spotlight to quickly compute some expression because I'm too lazy to do it in my head, on paper, or fire up some program. Sometimes I would like to view the result again, but when ...
13
votes
4answers
5k views

Search file duplicates in OSX by hash

I am looking for a way to search for a determinate file in OSX (Maverick but more generally OSX). In particular I would like to do the following: given a File_001 I'd like to search if in the ...
13
votes
3answers
56k views

Finder search doesn't work properly after Yosemite update

Ever since I upgraded to Yosemite, search no longer works properly in Finder. Spotlight works fine but Finder search just gives me a blank window with a spinning ball. I've tried reindexing and I've ...
12
votes
1answer
4k views

How to use Finder to find all files that do not match a certain criteria?

How can I use Finder's search feature to find all files that do not match a certain criteria? For instance, all files that don't end in ".txt" in the current folder.
12
votes
7answers
2k views

How to search LaTeX -documents in Spotlight?

I have reproduced the problem now also in El Capitan with new components (motherboard, 3x SSD) in my Macbook Air 2013-mid. I have had clean installation of OS X (El Capitan, Yosemite) while doing the ...
11
votes
0answers
567 views

Fixing app search in iOS 11 [duplicate]

Since updating to iOS 11, I've lost the ability to surface apps from the swipe-down Spotlight search field. This was my preferred method of launching apps as it was quite a lot more convenient than ...
10
votes
3answers
4k views

Why do some app spotlight results show the “.app” extension, but not all?

Even though I've explicitly set the Finder preference to display all file extensions, I'm still finding that some apps do not show the file name extension in their Spotlight result. Here are some ...
10
votes
4answers
3k views

Search for a string in Preview

I use Preview's Command-F (find) to search for C# in the pdf document. However, the result is not for 'C#', but just 'C': I get hundreds of meaningless search results. How can I get the search result ...
9
votes
7answers
14k views

Do any OS X apps ease Search and Replace across multiple files?

I'm looking for an OS X tool which allows me to search and replace a search string in multiple files. The requirements are the following: Search and Replace Search by regular expression Search across ...
9
votes
1answer
948 views

Disable ESC key yielding list of word suggestions when pressed in Preview in OSX 10.11.2

In preview (and apparently also in other Apple apps like Keynote, although I cannot reproduce), I get the unexpected behavior of getting a list of words when pressing the escape key in an empty search ...
9
votes
3answers
4k views

Safari searches in the title bar require tapping “return” twice

This began when I upgraded to El Capitan. Sometimes when I search using the title bar of Safari for a google search, I have to hit the return key twice. A single return will sometimes load search ...
9
votes
1answer
3k views

Use of regular expressions in macOS search fields

Does anyone know where I can find the docs describing Regex parsing capabilities of macOS search fields? What I mean, I'd like to read about the regex syntax rules that are allowed and parsed by the ...
8
votes
2answers
37k views

Search in a particular folder and subfolder through Spotlight

As the titles indicates, I would like to search a file in a particular folder, and its subfolders, through Spotlight. Is it possible to do that in Spotlight? If so, how can that be done?
8
votes
3answers
2k views

locate & updatedb - files not found

I ran sudo /usr/libexec/locate.updatedb then locate Radium3 but it returns nothing! but $ ls ~/Library/Containers/com.catpigstudios.Radium3/ Container.plist Data So why doesn't locate see all ...
8
votes
2answers
5k views

How to display the full path of files found by the Finder “Find” function?

I'm trying to use the Finder to search my code base. For example I would like to find every files that ends with ".m" and contains "keyDown". Finder does this, but in the Finder window showing the ...
7
votes
3answers
4k views

Exclude sub-folders from Finder search

How can I force Finder to only search the current folder, ignoring the contents of all the sub-folders? I don't want to exclude the sub-folders permanently from Spotlight, just for a certain search. ...
7
votes
1answer
1k views

Why doesn't OS X Spotlight search inside .json files?

I am trying to search a folder for an ID number. The folder contains various different file types. The ID can be found in several .json files, but non of them show up. If I rename the .json file to ....
6
votes
3answers
4k views

Does mdfind allow wildcard searches on filename?

I'm trying to figure out how to perform wildcard searches for filenames with mdfind on OsX? I tried: mdfind -name "*.pdf" but it didn't work. EDIT: I want to be able to find names like "test*.pdf"
6
votes
4answers
3k views

How to search for .zip files instead of all compressed files?

How do you search for a file of a specific type in OS X Yosemite? I cannot seem to find any instructions on how to do this. In the Finder search I enter: kind:zip But it returns all compressed ...
6
votes
1answer
3k views

Spotlight re-indexing takes too long or doesn't work

Issue After forcing Spotlight to reindex, no files or directories can be found. Setup I've got a MacBook Pro 15" 2017 with a 512 GB SSD: 250 GB main volume (36 free) and a BOOTCAMP partition (not ...
6
votes
5answers
931 views

Desktop Search - with more features than Spotlight?

I am looking for a 'desktop search' solution for the mac. I like the look of HoudahSpot (built on top of Spotlight) but it doesn't quite do everything I would like. My ideal search solution would do ...
6
votes
1answer
6k views

How do I change Spotlight search engine?

when I use Spotlight, it offers to "Search web for: " (something like that, my system is german). When I use this feature, Chrome pops up and searches with the Yahoo search engine. Chrome is the ...
6
votes
2answers
3k views

How can I use Regular Expressions in Spotlight on Mountain Lion?

How can I use Regular Expressions in Spotlight on Mountain Lion? I want to use my knowledge of regular expressions to make my search results more exact.
6
votes
2answers
2k views

Is there any way to specify “not” in iTunes search?

Whenever I want to listen to songs from a particular band in iTunes, I'll just type the name in the search box, select shuffle, and start playing. For most bands this works very well, but I've run ...
6
votes
2answers
810 views

Get Spotlight to search in Caskroom subdirs (which is now in /usr/local/)

I'm using Homebrew with Caskroom and since a recent update, it installs the apps downloaded through brew cask within /usr/local/Caskroom/ I always used Spotlight to find and open these apps, but now ...
6
votes
1answer
2k views

Local reverse/duplicate image search for Mac?

I'm searching for an application to find duplicate images. In my Linux days, there was a nice Gtk+ application which I could provide some folders and which would list all duplicate images based on ...
5
votes
2answers
8k views

macOS equivalent of the “where” command used in a Windows Command Prompt

In a Windows Command Prompt, I can find the location of things like Java and GIT by using the where command. For example, typing where java yields C:\Program Files\Java\jdk1.8.0_05. What is the ...
5
votes
4answers
6k views

Is it possible to configure Safari's search box to use google.co.uk rather than google.com?

Is it possible to customise the search engines used by Safari 5.1 on Snow Leopard? I'd like to get it to use google.co.uk rather than google.com for searches. I've found a couple of old posts (...
5
votes
2answers
2k views

Can “mdfind” search for phrases and not just unordered words?

Is there a way to search for an exact phrase using the mdfind utility? For example, I created two text documents titled "test1" and "test2". The contents of "test1" are: I love Apple And the ...
5
votes
4answers
5k views

How to fix Outlook for Mac search

Microsoft Outlook for Mac (version 16.21) is frequently unable to find email messages using the search feature, even in the case of emails that were sent relatively recently. I presume that the search ...
5
votes
5answers
2k views

Spotlight, please don't show mail, but still let me search in Mail app

When I search for stuff, even constraining with name:whatIwant, the majority of results are old e-mail messages and Safari history items. How can I get rid of these results, but still search my email ...
5
votes
1answer
423 views

Safari web browser do not find strings on a page in the common way

How to switch Safari to a normal web page searching instead of finding only whole words? Ex: there ase some words on a page: hello_world, ask_different. When I search for hello, world, ask, different ...
5
votes
3answers
1k views

Non-recursive spotlight search?

When using the Spotlight search at the top right of a finder window, I often want the search to be non-recursive, i.e. only look at files in that specific directory, not any directories within it. Is ...
5
votes
2answers
4k views

How does Apple AppStore rank search results?

I have an iOS application - an alarm clock. I released it a little over a month ago. Initially it was paid, but when I saw there were virtually no purchases (from 0 to 4 a day), I changed it to be ...
5
votes
9answers
19k views

How can I fix Lion Mail's search functionality?

I made a clean install of Lion, configured Mobile Me in System Preferences. So, when I opened Mail, my Mobile Me account was already configured and it started downloading my mails. Everything worked ...
5
votes
6answers
2k views

Sublime Text like fuzzy filesystem search for Mac OS X

Currently I am using Alfred's filesystem navigation capabilities. It's pretty awesome, but sometimes I want fuzzy-search to match not only the filename but the full path. E.g. I want to find a pdf ...
5
votes
4answers
31k views

Is it possible to search for text in iBooks or the Kindle app?

Is it possible to search for text in iBooks or the Kindle app? I'm deciding whether to buy electronic copies of some of my reference books, but I would only be purchasing them for the ability to ...