Windows 7联合搜索-如何使其向我的.net程序集发送搜索请求 [英] Windows 7 Federated Search - How to make it send search requests to my .net assembly

查看:112
本文介绍了Windows 7联合搜索-如何使其向我的.net程序集发送搜索请求的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试通过联合搜索功能从本地.net程序集在Windows 7资源管理器中显示搜索结果. (不是来自网络服务)

I am trying to display search results in the windows 7 explorer thru the federated search feature, from a local .net assembly. (not from a web service)

我找到了各种教程,但是所有教程都是针对Web服务的.之前我以为这是不可能的,但是后来我遇到了StickyNotes联合搜索连接器. .OSDX文件的内容为:

I have found various tutorials, but all of them are for web services. Earlier I thought that it was not possible but then, I came across the StickyNotes federated search connector. The contents of the .OSDX file are:

<?xml version="1.0" encoding="UTF-8"?>
<searchConnectorDescription xmlns="http://schemas.microsoft.com/windows/2009/searchConnector">
  <description>Create short handwritten or text notes.</description>
  <isSearchOnlyItem>true</isSearchOnlyItem>
  <includeInStartMenuScope>true</includeInStartMenuScope>
  <templateInfo>
    <folderType>{982725EE-6F47-479E-B447-812BFA7D2E8F}</folderType>
  </templateInfo>
  <simpleLocation>
    <url>StickyNotes://{S-1-5-21-3431700657-2522803235-1547684158-1000}/notes</url>
    <serialized>MBAAAEAFCAAAAAAAADAAAAAAAYUgAAQBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAYKAUAwHAykg1PPWtiyRvmVorPeOnkJkAQEATBAdAkGAjBwaAkHAOBwbAQHAlBwcAoDAvAwLAsHATBQLAEDAtAQNA0CAyAQMA0CAzAANAMDAxAwNAADAwAgNAUDA3AQLAIDA1AgMAIDA4AAMAMDAyAwMAUDAtAQMAUDA0AwNAYDA4AANAEDA1AAOA0CAxAAMAADAwAQfA8CAuBwbAQHAlBwcAAAAAAAAAAAAAAA</serialized>
  </simpleLocation>
</searchConnectorDescription>

这意味着可以将搜索查询转发到本地数据存储区/dll/exe

This means that it is possible to forward a search query to a local datastore/dll/exe

我想使用.net应用以相同/相似的方式提供搜索结果.我从哪里开始?

I would like to use my .net app to provide search results in the same/similar way. Where do I start?

请参阅:我的目标是使文档库数据库(sqlite)可以通过Windows资源管理器进行搜索,并在资源管理器中列出数据库中的文件及其元数据(文件存储在本地).

My aim is to make a documents library database (sqlite) searchable via the windows explorer and list the files and their meta data from the DB in explorer (files are stored locally).

推荐答案

该项目似乎可以在C#中完成此任务: http://mossph.codeplex.com/

This project appears to accomplish this in C#: http://mossph.codeplex.com/

该项目使用IContentEnumerator,IFilter和IUrlAccessor实现ISearchProtocol.一切都从ContentEnumerator类的实现传播.

The project implements ISearchProtocol using IContentEnumerator, IFilter and IUrlAccessor. Everything propogates from an implement of a ContentEnumerator class.

这篇关于Windows 7联合搜索-如何使其向我的.net程序集发送搜索请求的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆