2

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.

Windows Search Developer's Guide - Extending the Index

Can anyone help me get started?

Kev
  • 118,037
  • 53
  • 300
  • 385
Jatin Sehgal
  • 956
  • 2
  • 17
  • 37

2 Answers2

1

You should not be doing this.

Not because I say so, but because Microsoft does MSDN: IFilter interface.

A quote :

Important In Windows 7 and later, filters written in managed code are explicitly blocked. Filters MUST be written in native code due to potential CLR versioning issues with the process that multiple add-ins run in.

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.

Bernard Vander Beken
  • 4,848
  • 5
  • 54
  • 76
Jaapjan
  • 3,365
  • 21
  • 25
-2

I believe that Acrobat provides an iFilter interface, and I can use that to search inside of PDFs using MS SQL Server Full-Text-Search.

Aaron Kempf
  • 580
  • 2
  • 11
  • I know that sir but I wanted to use this iFilter interface(or any other thing for that matter) for any custom file format and extend the indexing in windows.Thanks. – Jatin Sehgal Apr 21 '11 at 07:28
  • are you using 'windows desktop search'? – Aaron Kempf Apr 21 '11 at 07:37
  • @Aaron: Sir, I wanted to create a filter handler in C# which looks for contents in any custom file format that's all. – Jatin Sehgal Apr 21 '11 at 09:02
  • @Aaron: Windows Search(in windows vista & windows7) replaces Windows Desktop Search (WDS), which was available as an add-in for Windows XP and Windows Server 2003. I basically want to add a filter handler to this windows search. Thanks anyways. – Jatin Sehgal Apr 21 '11 at 11:28
  • I just think that Microsoft search SUCKS. I used to be able to go Start, Search *Korn*.mp3 - now this same functionality doesn't work any longer. – Aaron Kempf Apr 22 '11 at 19:27