Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

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?

share|improve this question
add comment

1 Answer

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

share|improve this answer
    
Note: The order of the results did change based on last modification. –  MrDaniel Feb 4 '12 at 1:43
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.