Windows 7 Federated Search

z3r010

Administrator
Staff member
Local time
10:02 PM
Messages
53,535
Location
Douglas, Isle of Man
Federated search enables users to search remote data sources from within Windows Explorer. This means that from within Windows Explorer, you can search those Web sites, feeds, and other structured remote data sources that make themselves searchable with a simple Web front end that exposes their search capabilities. You can use the search box in Windows Explorer just as you do when searching your own content. Search results are displayed in the same way, including coloring and even file preview. The results behave just as you would expect from items listed in Windows Explorer, as shown in the following image:



The benefit of integrating your data source with Windows Explorer is that users can get at all of their information by using the already familiar Windows Explorer user interface. Your users will be able to see files from your remote data source just as they would local files, including the right application icons and context menus. They can preview documents or Web pages, see thumbnails of images, and drag and drop a file directly to the desktop or into an e-mail. Please note in the above picture that the files are from flickr.com and I am still getting the size, name, tags, date modified, and so on.

In this post, based on the Windows 7 Federated Search Provider Implementer’s Guide, you learn what federated search is and how it works. If you are interested in using federated search or in creating your own search provider, please read this guide.

How does it work?

Windows 7 supports hooking up external sources to the Windows Client via the OpenSearch protocol. The OpenSearch v1.1 standard defines simple file formats that can be used to describe how a client should query the Web service for the data store and how the service should return results to be rendered by the client. Basically, this means that you can point Windows Explorer to an external data source. Using the standard OpenSearch protocol, Windows Explorer submits the search query and the remote data source returns a well-formatted data structure that can then be parsed and presented to the user.

To add a new OpenSearch provider, you need to “install” a Search Connector Description file (a .osdx file). The internal file format for a .osdx file is an OpenSearch Description XML document. Here is the content of a Flickr search osdx file:

[FONT=&#39] </span span style="color: #ff0000"version/spanspan style="color: #0000ff"="1.0"/span span style="color: #ff0000"encoding/spanspan style="color: #0000ff"="UTF-8"/span?span style="color: #0000ff"> <span style="color: #0000ff"> Flickr Search OpenSearch for Flickr via Windows 7 Search Federation. <span style="color: #0000ff"> [/FONT]

Note how simple the file is. It basically includes a URL to Flickr search that specifies the searchTerms, which is the search query. For more information please go to OpenSearch v1.1 standard. Those of you who have a good eye and a good memory might think that the above XML looks a lot like an Internet Explorer 8 (IE8) Search Provider Extension – you know, the little search box on the top right of IE8 that lets you choose the context in which you execute a search. This is interesting enough so that you can expect a future post on how to convert an IE8 Search Provider to a Windows 7 Federated Search.

End users have several options for installing a new remote data source with Windows federated search: they can open a .osdx file by clicking on a link to one on a Web site or by opening one provided by someone else on a share or via an email attachment. This creates a .searchconnector-ms file in the Windows “Searches” folder (%userprofile%/Searches) and places a shortcut into the “Links” folder (%userprofile%/Links). This shortcut shows up in the Windows Explorer navigation pane Favorites section.

The communication between Windows Explorer and your OpenSearch Web service is done through the Windows Data Layer, which can communicate with various data source types via what are called Windows Store Providers. Each provider specializes in communicating with data stores that support a particular protocol and have specific capabilities. The OpenSearch provider communicates with data stores that have a Web service that supports the OpenSearch standard.

Let’s give it a try. Please click here to download (install) a Flickr search connector. You will be prompted to either save or open the file. Choose Open to actually register the search provider on your computer. Then, you will be prompted to Add a Search Connector. Accept by pressing the Add button as shown in the following image:

Note that a new shortcut named Flickr Search is added to your Favorite’s navigation pane. Click that shortcut, and then type Seattle in the Windows Explorer search box. Wait few seconds as the results are being streamed from the Flickr Web site.

Behind the scenes, when the user types a term into the search box in the upper right hand of Windows Explorer, the query is sent to the OpenSearch provider (described in the .searchconnector-ms file), which then sends the query to the remote data store (the URL that contains the “searchTerms” in the osdx file). The remote Web service responds to the query with results in an XML document in either the RSS or Atom format. The OpenSearch provider parses the XML elements of the results into items which eventually make it back to Windows Explorer where they are displayed to the user. The following picture illustrates the flow of data:

There are three steps to getting your data store’s Web service connected to Windows 7:


  1. Enable the data store to be searched from Windows using OpenSearch with RSS or Atom output.
  2. Create .osdx files that describe how to connect to the Web service and how to map any custom elements in your RSS or Atom XML.
  3. Deploy the search connectors to Windows client machines using the .osdx files.
 

The OpenSearch protocol gives you a lot of hooks into the system to customize the way results are displayed within Windows Explorer. For example you can:


  • Create a template for initial queries
  • Set the maximum results count and create pages
  • Customize the results view
  • Map properties to the Windows Explorer property system
  • Generate tooltips
There is a lot more to learn about how to create your own OpenSearch provider. If you are interested, read the Windows 7 Federated Search Provider Implementer’s Guide and view the Federated Search video created by Sasha Goldstein, one of the Introducing Windows 7 for Developers authors.


aggbug.aspx

More...
 

My Computer My Computer

At a glance

Windows 11
Computer type
PC/Desktop
OS
Windows 11
Just an idea... So, if SevenForums sets up their own OpenSearch web service, we could search these forums straight from Windows explorer? :D
 

My Computer My Computer

At a glance

Windows 7 Professional x64AMD A8-3870K8GB DDR3Radeon HD 6550D, Radeon HD 5850
OS
Windows 7 Professional x64
CPU
AMD A8-3870K
Motherboard
ECS A75F-M2
Memory
8GB DDR3
Graphics Card(s)
Radeon HD 6550D, Radeon HD 5850
Hard Drives
1TB
PSU
750W
That would be very interesting if you could do that, use windows search to find answers to problems from the forums.
 

My Computer My Computer

At a glance

Windows 7 Ultimate x64Intel i7-860Corsair Dominator 1600Mhz, 8-8-8-24 1.65v 2x2GBATI Radeon 5770 HD
Computer Manufacturer/Model Number
Zen Productions
OS
Windows 7 Ultimate x64
CPU
Intel i7-860
Motherboard
Gigabyte GA-P55A-UD4P
Memory
Corsair Dominator 1600Mhz, 8-8-8-24 1.65v 2x2GB
Graphics Card(s)
ATI Radeon 5770 HD
Sound Card
Intel High Definition Sound
Monitor(s) Displays
Samsung P2570HD
Screen Resolution
1920x1080
Hard Drives
Western Digital Caviar Black 500gb
PSU
Corsair CMPSU-750HX 750W
Case
Antec p183
Cooling
Corsair H50 Water Cooler
Keyboard
Logitech G110
Mouse
Logitech MX Revolution
Internet Speed
768 mb/s

My Computer My Computer

At a glance

Windows 7 Ultimate x64 SP1Core i7 920 (D0) @ 4Ghz, *26c idle *65c full ...12GB DDR3 Corsair Dominator -CMD12GX3M6A1600C...Zotac Geforce GTX 770
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Airbot 2.0
OS
Windows 7 Ultimate x64 SP1
CPU
Core i7 920 (D0) @ 4Ghz, *26c idle *65c full load on air
Motherboard
Asus P6X58D Premium - Sata 6Gb/s - USB 3.0
Memory
12GB DDR3 Corsair Dominator -CMD12GX3M6A1600C8 at 1600MHz
Graphics Card(s)
Zotac Geforce GTX 770
Sound Card
ASUS Xonar D2X
Monitor(s) Displays
1 LG 24" Flatron W2453V-PF 1 Samsung 24" P2450H both 2ms RT
Screen Resolution
1920x1080@60hz
Hard Drives
1 Samsung 250GB 840 Evo SSD
1 OCZ Vertex2 180GB SSD
1 TB Samsung Spinpoint F1 7200RPM 32MB cache
2 500GB WD Caviar Blacks 7200RPM 32MB cache (WD5001AALS)

Pioneer DVD Burner DVR-S18M
PSU
Corsair HX1000W
Case
Cooler Master HAF 932
Cooling
Case Fans *3 230mm, *1 140mm/CPU - *Tuniq Tower 120 Extreme
Keyboard
Logitech Wireless MK700
Mouse
Logitech Wireless MK700
Internet Speed
DL 15 Mbps UL 0.98 Mbps
Antivirus
None
Browser
Firefox Nightly
Other Info
Processor-7.7 *RAM- 7.9 *Graphics-7.9 *Gaming Graphics- 7.9 *SSD- 7.8 W.E.I final score= 7.7
*Phone- LG Nexus 5
Interesting. I will have to play around with that, when i have the time.
 

My Computer My Computer

At a glance

Windows 7 Ultimate x32Intel Celeron D 3.2 Ghz 533 fsb (LGA 775)1 GB (2x512MB) PC-3200 DDR @ 200MhzNvidia GeForce 9400GT- 1GB
Computer Manufacturer/Model Number
eMachines W3502
OS
Windows 7 Ultimate x32
CPU
Intel Celeron D 3.2 Ghz 533 fsb (LGA 775)
Motherboard
Intel D101GGC
Memory
1 GB (2x512MB) PC-3200 DDR @ 200Mhz
Graphics Card(s)
Nvidia GeForce 9400GT- 1GB
Sound Card
Sound Blaster X-Fi Xtreame Gamer
Monitor(s) Displays
19" LCD HDtv
Screen Resolution
1360x768 @ 60Htz
Hard Drives
SeaGate Barracuda 750GB
SeaGate Barracuda 100GB
Toshiba CD/DVDW/ TS-H552D [DVD+R, DL]
PSU
stock (idk)
Case
The busted remains of the stock case
Cooling
Dust cooled, waitwut?
Keyboard
Stock. Missing a few keys.
Mouse
Logitech LX8 5-btn mouse (wireless)
Internet Speed
TWC 10Mb
Other Info
Keeps going, and going, and going.......
Interesting stuff. I've been using Copernic Agent Professional for some years, which is at least vaguely similar in the results it provides. It's kind of old-school in the way it works, but I'm kind of old-school myself.

Copernic Agent - More Than a Simple Web Search Engine

Bye. :cool:

PS. Copernic Agent Pro is not fully compatible with Windows 7. It needs either the use of virtual XP mode, or setting the shortcut for XP SP3 compatibility. Only Agent Personal is W7 compatible.
 
Last edited:

My Computer My Computer

At a glance

Windows 7 Ultimate x64i7 9709 GB9600GT
Computer Manufacturer/Model Number
Home Brew
OS
Windows 7 Ultimate x64
CPU
i7 970
Motherboard
ASUS Rampage III GENE
Memory
9 GB
Graphics Card(s)
9600GT
Monitor(s) Displays
dual 24" Samsung
Screen Resolution
1920x1200
Hard Drives
VelociRaptor and 4TB of Hitachi RAID 0
PSU
Thermaltake toughpower W0104RU 650W
Case
Thermaltake LANBOX Lite
Internet Speed
30 Mbps Download 1 Mbps Upload (Speedtest.com)
Back
Top