Protocol Handler URLs  
Author Message
Tomas B





PostPosted: Windows Desktop Search Development, Protocol Handler URLs Top

Hey,

I am building a protocol handler so that I can index a database. The start url for the database is:

dat://localhost/<name of database>/

and all the subfolders of the database are

dat://localhost/<name of database>/<table name>

When the protocol handler is initialized it is given the url for the start of the database. How can I add the urls for each of the table names to the list of paths indexed. I know that I could add each table url individually in GetDefaultCrawlScope. I noticed that if I do this though the AddDefaultUrl all the urls are listed when you browse the folders that WDS will index. I would like for only the dat://localhost/<name of database>/ to be listed and that when the protocol handler is initialized for the rest of the urls with the individual table names to be indexed without appearing on the browse list.

Any advice would be appreciated.


Thanks,

Tomas


Windows Search Technologies7  
 
 
Paul Nystrom - MSFT





PostPosted: Windows Desktop Search Development, Protocol Handler URLs Top

Hello Thomas,

The best way to handle this is to use one URL as the default and emit the rest of the URLs from the IFilter inside the protocol handler.  In essence, this creates one URL which is the parent of all of the others.

Paul Nystrom - MSFT



 
 
Johnny Ni





PostPosted: Windows Desktop Search Development, Protocol Handler URLs Top

Hi, I am a fresh man of developing protocol for WDS.
I can not find protocol handler code sample located in <sdk_root>\Samples\SPS\Phandler\src.

 
 
Peter Katz





PostPosted: Windows Desktop Search Development, Protocol Handler URLs Top

Hi Johnny,

I had the same problem, the sample is nowhere to be found. Do this:

-Download the Windows Search 3x SDK http://www.microsoft.com/downloads/details.aspx familyid=645300ae-5e7a-4ce7-95f0-49793f8f76e8&displaylang=en

-Install it and it will only copy a few folders in your HD.

-Go to <install root>\Windows Search 3x SDK\Indexing\RegSearch

There is a sample PH.

Good luck!

PKatz



 
 
Johnny Ni





PostPosted: Windows Desktop Search Development, Protocol Handler URLs Top

Got it, thanks.
 
 
AndreBa





PostPosted: Windows Desktop Search Development, Protocol Handler URLs Top

Hello everyone,

I know that has been a while since this topic was created, but I need to develop a way to index databases in WDS too. Until now I've already noticed that I need to implement a protocol handler and a IFilter that "understand" the data inside those databases I want to index. My question is what exactly I must implement and what has been done in the examples that I could reuse.

I also be very thankfull if someone could explain to me from which point of view I need to start to build my PH and/or the IFilter. If already exists a IFilter for what I'm trying to do it will be even better.

Thanks a lot,