Hmm, ok, that would work. But since I maintain multiple indicies,
I'd have to maintain one copy of Swish-E in which "FileRules filename"
includes matching files, and another in which it excludes files.
So instead, I've changed IndexOnly to allow dots inside a suffix. It works
exactly as before for suffixes without a dot, but if there is a dot, then it
tries to match the whole thing.
I can supply patches if anyone else is interested in them.
Earl
-
On Thu, 13 Aug 1998, Ron Klatchko wrote:
>Earl Fogel wrote:
>> I want to index *only* files named index.html.
>
>SWISH does not directly support what you want. If you don't mind
>hacking SWISH, it would be quite easy to add/modify support for that.
>
>In file index.c, line 147 is:
> if (!strcmp(dp->d_name, tmplist->line))
>
>This is the line that verifies that the file name is not in a FileRules
>filename is rule. If you remove the exclamation point, you'll reverse
>the logic and now The FileRules filename is rule will only index files
>that are listed. Make sure to add FileRules filename is index.html and
>you should be on your way.
>
>moo
>----------------------------------------------------------------------
> Ron Klatchko - Manager, Advanced Technology Group
> UCSF Library and Center for Knowledge Management
> ron@ckm.ucsf.edu
>
Received on Thu Aug 13 11:10:23 1998