Skip to main content.
home | support | download

Back to List Archive

Re: FileMatch problem with latest version

From: Bill Moseley <moseley(at)not-real.hank.org>
Date: Mon Oct 06 2003 - 22:34:18 GMT
On Mon, Oct 06, 2003 at 02:50:50PM -0700, Phil Glatz wrote:
> I'm running 2.4.0-pr3 on a FreeBSD 5 box.  I'm new to SWISH-E (but really 
> like what I've seen so far), and am having trouble filtering the files I 
> want to index.
> 
> The directory I'm indexing has files that I want to be included of the form 
> 99999.html - the file name consists of a series of digits, followed by 
> ".html".  There are other files with numeric names ending in different 
> "extension" strings, and other names starting with alphabetic characters.
> 
> My config file consists of one directive:
> FileMatch filename contains ^[0-9]+\.html$

Take a look at the docs again.  IIRC, FileMatch is useful for overriding
files that were *excluded* otherwise (like IndexOnly .foo).

Here's an example from the docs:

    # Index only .htm, .html, plus any all-digit file names
    IndexOnly .htm .html
    FileMatch filename contains ^\d+$

-- 
Bill Moseley
moseley@hank.org
Received on Mon Oct 6 22:34:19 2003