Hi Greg
Thanks for persevering with this.
All of the files in question are on my local HD.
I tried your suggestion of moving file that is found to a directory of a
file that isn't found. The moved file was no longer found.
Even weirder, I moved the file back to its original location, and it was
no longer found.
Java files that refer to the class that the file defines are found.
I figured that maybe I need to rebuild my Spotlight database, so I
moved my HD to the privacy list of the Spotlight configuration,
restarted the laptop, and then went back to the Spotlight
configuration to remove the HD from the privacy list.
That *should have* (I think) caused the Spotlight database to be
rebuilt, but it didn't. I tried the same thing with just my (File
Vault protected) home dir, but the index was not rebuilt either.
I know that the index was not rebuilt as Spotlight was still
available. Normally it will display a dialog saying it is rebuilding
the index, if that is what is happening.
Eventually I tried: sudo mdutil -E /
That worked, and now Spotlight seems to be doing what I expect.
Except, the Spotlight search field from the menu bar doesn't appear,
and I can only use Spotlight via the Spotlight window ...
This is weird :-/
Thanks
Nathan
Greg Guerin wrote:
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
--
Nathan Sowatskey, Technical Leader, NMTG ANA Strategic Architecture -
email@hidden - +34-638-083-675
_______________________________________________
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