Skip to main content.
home | support | download

Back to List Archive

Re: [SWISH-E:447] RE: Only indexing certain filenames

From: Ron Klatchko <ron(at)>
Date: Thu Aug 13 1998 - 17:07:33 GMT
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.

          Ron Klatchko - Manager, Advanced Technology Group           
           UCSF Library and Center for Knowledge Management           
Received on Thu Aug 13 10:17:35 1998