| Steven's profileWindows Desktop Search -...BlogLists | Help |
|
|
August 02 Adding new search "locations" to Windows Desktop Search...I’ve been hoping that someday I’d actually have a short post to make on my blog about something Windows Desktop Search (WDS) related… But today isn’t that day…
We’ve been hearing some requests that users would like to add new locations to the “All Locations” list in WDS. Maybe something like this:
So that when you type in a query and select this added location you get navigated to a set of web search results like this:
And to be honest the real request we heard was for info about adding new desktop search locations but since we support the adding of both desktop and web search locations to the list I thought I’d unofficially tell you how to add both. As usual this isn’t an officially supported feature and is likely to change in the future. But when it does change we’ll most likely have a UI for adding these things but for now you’ll have to add them manually via the registry. So as a further disclaimer, be comfortable with modifying your registry before making any of these changes. I’d also recommend you make a backup of your registry settings before making any modifications to them.
Adding “MSN Music” to your locations list…
You’ll want to open RegEdit and navigate “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSN Apps\DS\Views\Locations”. Under that key you’ll notice a list of sub-keys for each location in the list:
As you can from the screenshot I’ve already added a new sub-key called Music for the MSN Music location displayed in my “All Locations” list above. To add this same location to your list just add a Music sub-key under Locations and add the values you see in the screenshot. Reboot your machine (or restart Explorer.exe) for the changes to take effect and the next time you launch a WDS results window your “All Locations” list should look just like mine. Well almost like mine. Yours won’t have a separator between “MSN Music” and “Outlook Express”. To get a separator you’ll need to modify the OE sub-key as well:
Change your OE keys Separator value from a 0 to 1. This should add the separator to your list after another reboot.
Understanding the “Locations” registry values…
So now I’ll drill into the details of what these seemingly random registry values mean and how you can use them to build a wide range of ready to use filters. As you’ve noticed we currently support two types of locations, Desktop Search and Web Search. The registry values you need to fill out are largely dependant upon the type of location you want. But there are a few common values used to control the display of the location in the list so let me talk about those first:
As you’ve probably figured out the locations list is built by simply walking the sub-keys of “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSN Apps\DS\Views\Locations” on first use. So to begin with you’ll need to add a uniquely named sub-key to this hive and fill out the common values listed above. If you’re adding a Web Search location you’ll need to fill out the following value as well:
Now anytime you select your new Web Search location we’ll navigate to the locations URL using the terms entered into our query box. For a Desktop Search location things are a little more interesting but follow the same principle as a Web Search location in that you need to tell us how we should filter your query. But for Desktop Search locations we give you 3 different dimensions to filter the query by:
Another thing worth talking about is the fact these locations get stored in HKEY_LOCAL_MACHINE. That means the changes you make to this list of locations will be applied to every user on the machine. But you can avoid that by copying the entire Locations hive to HKEY_CURRENT_USER and making your changes there. That way each user can have their own list of locations if they’d like.
How’s this useful?
So hopefully all that made sense and you have a hundred ideas for new locations you want to create. If so great! Maybe we’ll even turn it into a supported feature in the future. J But if not here are a couple of ideas worth considering:
Anyway… There are a couple of ideas and please let me know if you find this useful or have any comments… Enjoy!
-Steve
UID Values
ItemStore UIDs:
uidStoreAny = 0x30000001 uidStoreFile = 0x30000002 uidStoreMAPI = 0x30000003 uidStoreOE = 0x30000004
TypeFilter UIDs:
uidTypeAny = 0x10000 uidTypeAttachments = 0x80000 uidTypeContact = 0xA0000 uidTypeCommunications = 0x60000 uidTypeEmail = 0x70000 uidTypeCalendar = 0x90000 uidTypeIM = 0x160000 uidTypeTask = 0xB0000 uidTypeDocuments = 0x20000 uidTypeTextDoc = 0x30000 uidTypeNote = 0xC0000 uidTypeSpreadsheet = 0x40000 uidTypePresentation = 0x50000 uidTypeMusic = 0x100000 uidTypePictureVideo = 0xD0000 uidTypePicture = 0xE0000 uidTypeVideo = 0xF0000 uidTypeFolder = 0x110000 uidTypeFavorite = 0x120000 uidTypeProgram = 0x130000 uidTypeMultimedia = 0x140000
|
|
|