Spotlight on Mac OS X is a fast desktop search technology that allows users to organize and search for files based on metadata. Spotlight is extensible, allowing developers to provide metadata importers for their application’s documents.
Questions tagged [spotlight]
259 questions
1
vote
1 answer
grep and spotlight, getting different results
So I'm using this
grep -lrai "search query" /right/here/
to search for a word in 100+ pdf files (which is why I have included -a).
Using grep shows 3 results, whereas a simple search in Spotlight will show a lot more in the same directory.
Am i…

Jose187
- 449
- 1
- 7
- 15
1
vote
2 answers
How to search on databases in a hadoop cluster using Solr
I currently have a number of databases in a hadoop cluster and wish to index some tables from these databases into a Solr index for searching. Is there a way this can be done? Or is there some mechanism to perform this kind of search in hadoop…

Bharath Naidu
- 195
- 3
- 6
- 14
1
vote
1 answer
Spotlight UI unable to find Core Data external record files inside Sandbox
I've followed the instructions to integrate spotlight into a non-document based Core Data application using Record-Level Indexing. The spotlight importer imports the files correctly and those records can be found using mdfind "some string".
The…

Jason Harwig
- 43,743
- 5
- 43
- 44
1
vote
1 answer
Why does Spotlight sometimes not run my query?
I'm playing around with the Spotlight API, both the Carbon and Cocoa versions, and I seem to have the same problem crop up every once in a while: The query never runs, and never fires any notifications. However, I want to stress that most of the…

Gregory Higley
- 15,923
- 9
- 67
- 96
1
vote
1 answer
The no of hits in a file in Spotlight
I'm using Spotlight APIs to provide search in my application. I need to know the no of times the search string is present in a file so that I can implement a Sort Descriptor and sort the results. Is there any way to do this without having to open…

Bhargava Srinarasi
- 192
- 1
- 15
1
vote
1 answer
How to get back the Spotlight For Help menu item
I have an application that requires authentication. Before the user authenticates only a subset of menu items is present in the menu bar. After the user has successfully authenticated I replace the application’s main menu with [NSApp…

Rafael Bugajewski
- 1,702
- 3
- 22
- 37
0
votes
1 answer
Creating a "spotlight search" in PHP
I'm working on an E-Book that will be published to my website. I want to mimic OSX spotlight feature where someone can use a my fixed search bar and input text that is then highlighted on the page for them. I was trying to use Sphider but no such…

Ryan Rich
- 11,637
- 8
- 22
- 31
0
votes
1 answer
Querying with spotlight
I'm working on a tiny project for LEOPARD (10.5) and I'm kinda rookie with Objective-C programming. I've been searching for some tutorials on internet but I'm still confused! I need to use Leopard's spotlight feature to search for every .app file…

Kyle Oliveira
- 187
- 1
- 12
0
votes
1 answer
How to send correct query using NSPredicate to fetch required metadata in the implementation of spotlight?
In the below code, 25th line, searchPredicate, not able to set the correct query. Even if correct, not able to get back suitable metadata in the method 'initialGatherComplete:' which is invoked by the notification. The metadata fetched should be…

Soorya
- 39
- 5
0
votes
1 answer
Spotlight won't turn on: Console says: mds[pid] (Fatal) Server: mds must be run as root. exiting
I turned off spotlight and was very thorough about it. So thorough that I can't get it turned back on. I need to install a program from the Mac App Store (& App Store relies on mds), so if anyone has information on how to install an App Store…

Brandon
- 1,956
- 18
- 18
0
votes
1 answer
Searching keywords using spotlight?
I have a list of keywords that I want to search through out all my employee's iPad's, is it possible to call spotlight and get the results programmatically?
Thank you.
Edit:
Basically an app that would search for custom keywords on all other apps on…

the Reverend
- 12,305
- 10
- 66
- 121
0
votes
1 answer
Mac Spotlight-API: how to search email's "to", "from" or "subject" fields
At the moment I have spotlight-api code which searches email's body. I'm using NSMetadataQuery and creating predicate for "kMDItemTextContent like[c] %@". This works fine when requested "search-term" is in body of email.
In Spotlight App (magnifier…

Uroš Milivojević
- 203
- 1
- 2
- 10
0
votes
0 answers
Spotlight can find deleted iCloud-synced page file, but unable to open it
I encountered a bug on macOS where I created and saved a Pages file, which was then synced to iCloud. However, when I directly deleted the file and emptied the trash, I noticed that Spotlight can still search for the deleted file. Reindexing the…
0
votes
1 answer
Spotlight effect in actionscript-flash
Can anyone point me to a good demo or tutorial on creating a hollywood style spotlight effect?
2 soft edged rays pointing down towards a 'floor' and criss crossing each other

Bachalo
- 6,965
- 27
- 95
- 189
0
votes
0 answers
raycast - vs code extension
i have an issue and its connecting raycast spotlights extension 'visual studio project manager' to my vs code or the extension in vs code 'project manager'.
so when i click on the extension expecting to reach my projects from there, i get this…

imnotpey1
- 20
- 1
- 4