Nathan Sowatskey wrote:
>I have a file called, for example, hshsshajj.java in the file system.
>
>I copy that name and bring up Spotlight, paste that file name, and
>Spotlight does not show any results.
>
>I really do mean Spotlight :-)
>
>Spotlight is finding other Java files, so this is not consistent.
If Spotlight is finding other Java files, then the problem isn't with the
generalized category called "Java files", it's with a subset of Java files,
or a specific Java file. I think you may have over-generalized your
conclusion.
An essential fact: Spotlight does not index all files.
For example, it will ignore files or dirs that start with ".".
It also won't index files or dirs marked with the Hidden or Invisible
attribute (Finder-flag bit).
It may or may not index removable file-systems. For example, it never
indexes networked file-systems, AFAICT.
And there are some dirs in the file-system it won't index, such as any .app
bundles, or the dir /private or symlinks that point into it. For example,
paste the word "racoon" into Spotlight. If you have a relatively stock
system, it won't find more than a few files. Yet type this in Terminal:
ls -l /etc/racoon
and Boom, there it is. (/etc is a symlink to /private/etc)
So you'll have to explain more about your "hshsshajj.java" file.
1) What is the pathname of its parent dir?
2) Are any of its leading dirs hidden?
3) Is it on an external or removable file-system or disk-image?
You might also want to do a couple of trials:
A) Move the problematic hshsshajj.java to a dir where other .java files
are being indexed by Spotlight, and see if that causes hshsshajj.java to be
indexed.
B) Move a Foo.java file that Spotlight does index (a 'known-good' file)
to the dir where hshsshajj.java isn't indexed, and see if Foo.java drops
out of Spotlight's indexing.
Also, it's still in the realm of possibility that an mdimporter module from
some other application is causing the problem. A simplistic approach to
finding those apps is this command in Terminal:
locate mdimporter
Read 'man locate' to see how it works, which should also provide some idea
of what its output is telling you. One caution: it requires an up-to-date
locate-database, and if that database hasn't been rebuilt recently, it
won't show what's really out there.
And finally, asking on the Spotlight-Dev list may yield better answers:
<http://lists.apple.com/mailman/listinfo/spotlight-dev>
-- GG
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden
This email sent to email@hidden