Click here to get back home

Where to start?

 HomeNewsGroups | Search | About
 microsoft.public.msn.search    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Where to start? Tthe guy who br 08-29-2006
Posted by Tthe guy who br on August 29, 2006, 4:58 pm
Please log in for more thread options
I want to use WDS to index my application.

The application (simply) consists of a database containing meta-data about
files. The files are (mainly but not exclusively) Office documents contained
somewhere in the filesystem.

I want to be able to enter a word in the Desktop Search search-box, the
results should include files where the word is found
i) in the file itself.
ii) in the meta-data or

i) I guess is simple - I just ensure the location is included in the search
locations.

but
ii) - Where do I start?

The database is a single .db file. I have an API which will return me
key\value pairs from the metadata.

I'm not sure what the process should be here.
If I write an IFilter what will the IFilter filter?
Do I need to include the path containing the .db file in the indexed
locations or can I index a specific file?
How does Windows know to send this type of .db file to this IFilter. Will my
IFilter receive every file? Or every file with a .db extension? Or just this
.db file?
When will the .db file be sent to the IFilter (& if so how).

When the IFilter processes the .db what should it do to say:
        "This piece of metadata is accociated with this file"
rather than:
        "This piece of metadata is from the .db file"



I think I need a dummies guide

Posted by Jeff R. on August 29, 2006, 6:38 pm
Please log in for more thread options
To index a database you will need a protocol handler to allow the indexer to
crawl the database. For the items in the database you will need an IFilter
if the items are not of an already known type, meaning if there isn't
already an IFilter in place that is capable of parsing/indexing the items.

hope that helps.

>I want to use WDS to index my application.
>
> The application (simply) consists of a database containing meta-data about
> files. The files are (mainly but not exclusively) Office documents
> contained
> somewhere in the filesystem.
>
> I want to be able to enter a word in the Desktop Search search-box, the
> results should include files where the word is found
> i) in the file itself.
> ii) in the meta-data or
>
> i) I guess is simple - I just ensure the location is included in the
> search
> locations.
>
> but
> ii) - Where do I start?
>
> The database is a single .db file. I have an API which will return me
> key\value pairs from the metadata.
>
> I'm not sure what the process should be here.
> If I write an IFilter what will the IFilter filter?
> Do I need to include the path containing the .db file in the indexed
> locations or can I index a specific file?
> How does Windows know to send this type of .db file to this IFilter. Will
> my
> IFilter receive every file? Or every file with a .db extension? Or just
> this
> .db file?
> When will the .db file be sent to the IFilter (& if so how).
>
> When the IFilter processes the .db what should it do to say:
> "This piece of metadata is accociated with this file"
> rather than:
> "This piece of metadata is from the .db file"
>
>
>
> I think I need a dummies guide



Posted by Tthe guy who br on August 29, 2006, 7:35 pm
Please log in for more thread options

Guess it kind helps.

So I need to write a Protocol handler. What protocol will the handler be
handling?

As I say my database is in a '.db' file. So would I be handling something
like:
myhandler://path/mydbfile.db

If you'll excuse the questionable pseudo code, I want to do something like
this:
---------
filenames = SELECT filename FROM filestable
foreach(nextfile in filenames)
{
filemetadata = SELECT key, value FROM metadatatable WHERE filename=nextfile
foreach( keyvaluepair in filemetadata )
{
IndexThisPieceOfMetaData( nextfile, keyvaluepair )
}
}
---------

What does what & when in the process?
- Is this the right process flow?:
1)        WDS is running and decides to index stuff
2)        WDS finds my .db file in a indexable location
3)        Someway, Somehow WDS finds out my protocol handler is registered to this
type, so calls myhandler://path/mydbfile.db
4)        My handler would recieve the path/filename, open the database and start
doing "stuff" with my current API to get the metadata.
5)        Metadata is sent to the index


Questions:
1) Would I be right in assuming this happens when the file is changed? Since
this is a db file this may change very often. Should I just 'live with
it'\'make sure it is thread safe'\'have some flag in my db to say what
changed'.
3) & 5) How\Why\What\When\Where?

In the bit of pseudo code, what does
        IndexThisPieceOfMetaData( nextfile, keyvaluepair )
actually do? How is this metadata sent to the index? How do I tell the index
that I'm talking about a different file? Is it simply case of one of the
key\value pairs sent to the index being 'filename'\'<absolute path of the
file>'


Is an IFilter used? Is so, when?



I've got a gazillion other questions, but I need to get clear how the whole
thing hangs together, what takes responsibility for doing what, and when.




Posted by Tthe guy who br on August 29, 2006, 7:57 pm
Please log in for more thread options

I was thinking about carving this up.....
http://www.codeproject.com/aspnet/AspxProtocol.asp

Any thoughts on that?



Posted by Jeff R. on August 31, 2006, 8:08 pm
Please log in for more thread options
Didn't dig in to it too deeply but am willing to bet that's a whole other
deal...

Thx,

JR

>
> I was thinking about carving this up.....
> http://www.codeproject.com/aspnet/AspxProtocol.asp
>
> Any thoughts on that?
>
>



Similar ThreadsPosted
Terminal server manual - WDS doesn't start! August 24, 2005, 4:57 pm
Windows Desktop Search won't start October 3, 2006, 10:16 am
after uninstall, Start Menu toolbar sticks November 14, 2005, 2:18 pm
WDS Protocol Handler: Indexing does not start automatically April 25, 2006, 5:58 am
Unable to start Windows Search Service April 1, 2007, 1:52 pm
Latest version install - Windows Desktop Search could not be start June 11, 2005, 10:30 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap