I've imported most of a javascript code base via mdimport (using the packaged SourceCode.mdimporter provided by Xcode) and it succeeds. However, mdfind only ever returns to me at most two results, those being the two most recently accessed files. For example, if files A, B and C all contain the substring "term", mdfind "term" would show only A and B. If I then opened file C, the subsequent call of mdfind would only show B and C. How do I get mdfind to return to me all files containing my term?
Tell me more
×
Ask Different is a question and answer site for
power users of Apple hardware and software. It's 100% free, no registration required.
|
When I performed a test for a term contained in three files, it showed all the files when running the mdfind command. I would recommend rebuilding your spotlight index on the current folder/s you are in and see if that fixes it. To rebuild your spotlight index: Spotlight: How to re-index folders or volumes |
|||
|
|