English 中文(简体)
有没有办法用Windows Search创建我自己的索引?
原标题:Is there a way to create my own index with Windows Search?

我有一个应用程序,可以将文件(主要是Office文档)存储在不同的远程位置。我希望我的用户能够在自己的机器上根据一些标准搜索这些文件。我想我可以使用Windows搜索来创建索引。我有这个想法是因为几年前,为了在Outlook中搜索电子邮件,我不得不安装Windows搜索。所以我认为Outlook正在利用Windows搜索来搜索PST文件。

简而言之,我想知道是否可以使用Windows搜索创建自己的索引。现在,我无法在网上找到任何示例(最好是在C#中)。我找到了IFilter的例子,但仅此而已。

谢谢你的帮助!

问题回答

G戴·马丁,

我将提前指出,问题是您将拥有每台机器生成的索引。这意味着网络上的每台机器都必须在某个时刻为每一份文档编制索引。网络上的所有负载都不是一件好事,如果你必须添加更多的计算机,它也不会很好地扩展。

imho,最好的办法是安装一个免费的SharePoint变体,并利用其搜索功能。这将处理任何需要编写的搜索UI,OOTB它已经非常擅长索引网络中分布在驱动器上的文件。

Hope that helps. Cam





相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

NSArray s, Primitive types and Boxing Oh My!

I m pretty new to the Objective-C world and I have a long history with .net/C# so naturally I m inclined to use my C# wits. Now here s the question: I feel really inclined to create some type of ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

How to Use Ghostscript DLL to convert PDF to PDF/A

How to user GhostScript DLL to convert PDF to PDF/A. I know I kind of have to call the exported function of gsdll32.dll whose name is gsapi_init_with_args, but how do i pass the right arguments? BTW, ...

Linqy no matchy

Maybe it s something I m doing wrong. I m just learning Linq because I m bored. And so far so good. I made a little program and it basically just outputs all matches (foreach) into a label control. ...

热门标签