Are user-defined fields indexed for Advanced Search?

  • Thread starter Thread starter Mark B
  • Start date Start date
M

Mark B

Are Outlook 2007 email user-defined fields I create automatically indexed
for Advanced Search?
 
For Instant Search or Advanced Find? Not automatically for either.

For Advanced Find you'd add the fields using the Advanced tab to add user
defined fields in the folder (the user properties must be added as folder
properties and not just in the items).

For Instant Search you'd use the add criteria setting to add the form the
user properties are from, which makes them available for Instant Search. The
properties must be from custom, published forms in that case.
 
If not automatically indexed then for Advanced Find, is there a way to
create an index?

The reason is we are trying to find an email, normally using GetItemFromID
but if it has been moved to another folder we'd then have to regress to the
slower Advanced Find method.

I can't see any other way to find an email since using the Find method isn't
multi-threaded and locks up the GUI.
 
The Outlook object model is not multi-threaded at all. In fact if you call
the OOM on a background thread you will hang or crash Outlook.

There is no way to automatically create an index for an AdvancedSearch,
which is the code equivalent for the Advanced Find method. AdvancedSearch is
asynch, so you can just set an event handler for the AdvancedSearchComplete
event.

If you want faster you'd have to use a different API such as CDO 1.21 or
Extended MAPI (C++ or Delphi code only) or Redemption
(www.dimastr.com/redemption) and set up a restriction on a search folder,
which is roughly what you're doing when you initiate an AdvancedSearch.
 
Back
Top