Windows 7 Resource Manager searches for Channel 9 videos

Source: Internet
Author: User

In Windows 7, federated search can access remote data resources through the opensearch protocol, which means that you can use the resource manager (Windows Explorer) to search and browse remote data. In this article, we will create a search connector to find the video information on channel 9.

How federated search works

Describes the basic working principles of federated search:

1First, install the search connector through the. osdx (opensearch description) file. The file type of osdx is well-known in XML format. For the usage and related formats, see opensearch. Because. osdx is a file type that can be directly recognized in Windows 7, you only need to double-click the file to complete the installation.

2After searching for the connector to install, you can see the Channel 9 option in resource manager:

Next, we can use the search provider to search for the video content we are looking:

Although only a few simple keywords are entered, the search provider actually replaces the text in the search box behind the scenes with something like "http://channel9.msdn.com/Search/feed/rss? Term = {Searchterms.

3When the Channel 9 server receives a request, it will query it immediately and return the result in RSS format (as shown in) to our computer.

4Finally, Windows ExplorerCodeMake a little effort to present the beautiful content to us.

 

Create an osdx search Connector

The. osdx file is divided into two parts. One part is used to construct some basic information about HTTP requests and osdx:

 <?  XML  Version  = " 1.0 " Encoding  = " UTF-8 " ?> <  Opensearchdescription  Xmlns  = "Http://a9.com/-/spec/opensearch/1.1/ " Xmlns: MS-ose  = " Http://schemas.microsoft.com/opensearchext/2009/ " > <  Shortname  > Channel 9 </  Shortname  > <  Description  > Search on Channel 9 in Windows 7 </  Description > <  URL  Type  = " Application/RSS + XML " Template  = " Http://channel9.msdn.com/Search/feed/rss? Term = {searchterms} " > </  URL  > <  URL  Type  = " Text/html "Template  = " Http://channel9.msdn.com/Search? Term = {searchterms} " > </  URL  > ...... </  Opensearchdescription  > 

The following table lists the usage of URL template parameters:

The other part is used to sort the returned RSS search results:

 <?  XML  Version  = " 1.0 "Encoding  = " UTF-8 " ?> <  Opensearchdescription  Xmlns  = " Http://a9.com/-/spec/opensearch/1.1/ " Xmlns: MS-ose  = " Http://schemas.microsoft.com/opensearchext/2009/ " >   ...... < MS-ose: resultsprocessing  Format  = " Application/RSS + XML " > <  MS-ose: propertymaplist  > <  MS-ose: propertymap  Sourcenamespaceuri  = " Http://www.mscommunities.com/rssmodule/ " > <  MS-ose: Source  Path  = " Previewtext " > <  MS-ose: Property  Name  = " System. autosummary " /> </  MS-ose: Source  > </  MS-ose: propertymap  > <  MS-ose: propertymap  Sourcenamespaceuri  = "Http://purl.org/dc/elements/1.1/ " > <  MS-ose: Source  Path  = " Creator " > <  MS-ose: Property  Name  = " System. Author " /> </  MS-ose: Source  > </  MS-ose: propertymap > <  MS-ose: propertymap  Sourcenamespaceuri  = "" > <  MS-ose: Source  Path  = " Enclosure/@ URL " > <  MS-ose: Property  Name  = " System. contenturl " /> </ MS-ose: Source  > </  MS-ose: propertymap  > <  MS-ose: propertymap  Sourcenamespaceuri  = "" > <  MS-ose: Source  Path  = " Enclosure/@ Type " > <  MS-ose: Property  Name = " System. mimetype " /> </  MS-ose: Source  > </  MS-ose: propertymap  > </  MS-ose: propertymaplist  > </  MS-ose: resultsprocessing  > </  Opensearchdescription  > 

The results are displayed in the following way:

The following table lists the RSS ing parameters of the rss xml and Windows Shell attributes:

Finally, save the edited document in. osdx format. Double-click the file to install the search connector:

References

1. Windows 7 federated search provider Implementer's Guide

Http://www.microsoft.com/downloads/details.aspx? Familyid = c709a596-a9e9-49e7-bcd4-319664929317 & displaylang = en & TM

2. federated search in Windows

The http://msdn.microsoft.com/en-us/library/dd742958 (vs.85). aspx

3. Creating an opensearch description file in Windows federated search

Http://msdn.microsoft.com/en-us/library/dd742951 (V = vs.85). aspx

4. opensearch

Http://www.opensearch.org/Specifications/OpenSearch/1.1

Channel 9 search connector download

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.