|
From: Jonathan S. <gel...@ge...> - 2002-03-04 10:02:59
|
On Sun, 3 Mar 2002, Amer Neely wrote:
> Jonathan Stowe wrote:
> >
> > On Sun, 3 Mar 2002, Amer Neely wrote:
> >
> > > I've grabbed the web search script (search.zip) and have it installed,
> > > but can't get it to drill down into subdirectories. It does a fine job
> > > finding search terms in the top level directory, but none below it. Is
> > > this a known 'feature' or did I miss something in the config?
> > >
> >
> > You will need to set $emulate_matts_code to 0 in the first instance.
> >
>
> OK, I've done that, and checked the permissions on the subdirectories
> and they are all drwxr-xr-x
>
> I double-checked a subdirectory file to ensure it contains a word I'm
> looking for, but it refuses to search anything but the top level
> directory defined in $basedir.
>
> If someone has this script working correctly, I sure would like to know
> how.
>
It's probably not clear enough in the README, but for each level of
directory you want to go down you need to specify that in the
configuration so for instance if you wanted to search in all of the
sub-directories and their sub-directories then you should have something
like:
my @files = ('*.html','*/*.html','*/*/*.html');
So for each level you want to search down you will need to add a new entry
with a further '*/'.
I have crossposted this to the developer list in case anyone has any ideas
about how we can switch this behaviour off in the configuration where
people really do want to look in all the sub-directories.
/J\
--
Jonathan Stowe |
<http://www.gellyfish.com> | This space for rent
|
|