Re: Spotlight search speed problems?
Re: Spotlight search speed problems?
- Subject: Re: Spotlight search speed problems?
- From: Vince DeMarco <email@hidden>
- Date: Thu, 16 Jun 2005 11:27:27 -0700
On Jun 16, 2005, at 11:16 AM, Jim Correia wrote:
On Jun 16, 2005, at 11:43 AM, Vince DeMarco wrote:
All FS type searches are slower
the menu does this
kMDItemDisplayName == "*.radiusconfig"
this will be much faster
DisplayName is the cached name as you would see in the Finder,
FSName does a catalog search
Vince,
The problem is if the user types Foobar.txt I have no way of
knowing if the target has hide extensions turned on or not (or what
the state of that checkbox was when Spotlight indexed the file) so
I've found searching on the display name didn't give me the hits I
was expecting. Is my memory or approach flawed? Is there some way
out of this conundrum?
Ideally you would want to search on UTI instead of by file name
extension. In Colin's case the UTI isn't known, his application has
plugins that get loaded and the plugins help the application load in
more data files etc..
if you don't have this limitation then search for
kMDItemContentType == 'your uti' && kMDItemDisplayName == "foobar*wdc
a search for kMDItemFSName will be very slow, as we don't cache that
in the Metadata store at all, so it will do a cat search of the disk.
Vince
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden