MDQuery number of criteria limitation ?
MDQuery number of criteria limitation ?
- Subject: MDQuery number of criteria limitation ?
- From: Aurélien Hugelé <email@hidden>
- Date: Tue, 10 May 2005 17:52:01 +0200
hi list !
i'm using MDQuery and found a limitation :
i have an HUGE request, that can be tested in the terminal :
mdfind "kMDItemContentType == 'com.apple.mail.emlx' &&
((kMDItemAuthorEmailAddresses == 'email@hidden'c) ||
(kMDItemAuthorEmailAddresses == 'email@hidden'c) ||
(kMDItemAuthorEmailAddresses == 'email@hidden'c) ||
(kMDItemAuthorEmailAddresses == 'email@hidden'c) ||
(kMDItemAuthorEmailAddresses == 'email@hidden'c) ||
(kMDItemAuthorEmailAddresses == 'email@hidden'c) ||
(kMDItemAuthorEmailAddresses == 'email@hidden'c) ||
(kMDItemAuthorEmailAddresses == 'email@hidden'c) ||
(kMDItemAuthorEmailAddresses == 'email@hidden'c) ||
(kMDItemAuthorEmailAddresses == 'email@hidden'c) ||
(kMDItemAuthorEmailAddresses == 'email@hidden'c) ||
(kMDItemAuthorEmailAddresses == 'email@hidden'c) ||
(kMDItemAuthorEmailAddresses == 'email@hidden 'c) ||
(kMDItemAuthorEmailAddresses == 'email@hidden'c) ||
(kMDItemAuthorEmailAddresses == 'email@hidden'c) ||
(kMDItemAuthorEmailAddresses == 'email@hidden'c) ||
(kMDItemAuthorEmailAddresses == 'email@hidden'c) ||
(kMDItemAuthorEmailAddresses == 'email@hidden'c) ||
(kMDItemAuthorEmailAddresses == 'email@hidden'c) ||
(kMDItemAuthorEmailAddresses == 'email@hidden'c) ||
(kMDItemAuthorEmailAddresses == 'email@hidden'c) ||
(kMDItemAuthorEmailAddresses == 'email@hidden'c) ||
(kMDItemAuthorEmailAddresses == 'email@hidden'c) ||
(kMDItemAuthorEmailAddresses == ... but more than 100 criterias
should be added to see the query failing...
is there another way to write this query ? something like "IN"
keyword of SQL ?
thanks
_______________________________________________
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