Archive for August 31, 2007

Index server annoyance

I think Index Server has been discontinued in Vista in favor of something shiny and new but that doesn’t stop me from using it and running into things like this:

You can’t configure it to ignore a set of directories that follow some path.

This becomes an issue if you’re using a revision control system like subversion, which facilitates offline use by creating .svn directories throughout your tree with a copy of the server’s files (so you can do offline diffs and probably reverts and so forth).  The problem is now if you wanted to create an index of a project that had a structure something like this:

c:\src
c:\src\shared
c:\src\make
c:\src\module1
c:\src\module2

You can’t simply create an index over “c:\src” because searches into the index will get all the hits doubled (on, say, c:\src\file.txt and c:\src\.svn\file.txt).  Index server has a feature to exclude directories, but I’d need N exclude records for every directory in my project. And if the project structure changes, I’d have extra (or need new) entries in my list of exclusions to get everything working again.
My hacky workaround is to run an xcopy command on computer idle that copies “src” to “mirror” with an exclude file telling it to ignoe all “\.svn\” hits and then changed my index to look at that.  I hope this is better in Vista’s new desktop search (or that it’s possible with Google Desktop or something).

Comments

1234

I (heart) Feist.

Comments