使用 C#/.NET 使用可处理自定义文件格式的过滤器处理程序扩展 Windows 搜索索引
是否可以使用适用于 .NET/C# 中自定义文件格式的过滤器处理程序来扩展 Windows 搜索索引?
我希望索引适用于某些自定义文件类型。对于某些自定义文件格式,我需要实现过滤器或属性处理程序以对文件内容和属性进行索引。
我用谷歌搜索它以获得一些与之相关的样本,但我找不到任何有用的东西。虽然我从 msdn 得到了一篇文章,其中讨论了扩展 Windows 的索引。
有人可以帮助我开始吗?
Is It possible to extend Windows search index with a filter handler that works with a custom file format in .NET/C#?
I want the indexing to work for some custom file types. For some custom file formats, I need to implement a filter or property handler to have file content and properties indexed.
I googled it to get some samples relating to it but I could not find anything useful. Although I got an article from msdn which talks about extending the indexes for windows.
Can anyone help me get started?
你不应该这样做。
不是因为我这么说,而是因为 Microsoft 确实 MSDN: IFilter界面。
引用:
如果您决定不使用 Windows 7,您仍然可以使用实现框架之一,例如 iFilterCode 制作一个。但它必须一直通过 Interop,这对速度来说是一个相当不错的打击。
You should not be doing this.
Not because I say so, but because Microsoft does MSDN: IFilter interface.
A quote :
If you decide not to use Windows 7, you can still use one of the implementation frameworks like iFilterCode to make one. But it will have to go through Interop all the time which is a pretty decent hit in speed.