• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Spotlight search speed problems?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Spotlight search speed problems?


  • Subject: Re: Spotlight search speed problems?
  • From: Lee Morgan <email@hidden>
  • Date: Thu, 16 Jun 2005 00:35:18 -0400


On Jun 16, 2005, at 12:20 AM, Colin Cornaby wrote:

Hey, I'm doing a search using MDQuery and it's running much slower than a search for the same term in the spotlight menu. The menu can complete the search in about 3 seconds, while my app can take 9-13 seconds for the same search. Here is the code I am using:


MDQueryRef query;

    query = MDQueryCreate(kCFAllocatorDefault,

                      CFSTR("kMDItemFSName == '*.radiusconfig'"),

                      NULL,

                      NULL);

    NSLog(@"Starting query");

    MDQueryExecute(query, kMDQuerySynchronous);

    NSLog(@"Ending query");


The speed might be relative - that being, that the spotlight menu searches async whereas I see your searching synchronous.

I am also wondering if I can run more than one set of search conditions in a query. For example, I want to search for files ending in both .radiusconfig and .stellarradius. Thanks!


I seem to recall the ability for OR ops, something like "kMDItemFSName == '*.radiusconfig' || kMDItemFSName == '*.stellarradius'"

If you need I can try and find docs on the OR op tomorrow, but I'm running short on time tonight.

- Lee
 _______________________________________________
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

References: 
 >Spotlight search speed problems? (From: Colin Cornaby <email@hidden>)

  • Prev by Date: ABPeoplePickerView
  • Next by Date: drag-n-drop
  • Previous by thread: Spotlight search speed problems?
  • Next by thread: Re: Spotlight search speed problems?
  • Index(es):
    • Date
    • Thread