[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Webglimpse Home]
.glimpse_(ex|in)clude syntax
Attempting to use the old .glimpse_exclude and .glimpse_include
behavior I quickly found it doesn't work the same with wglimpse as compared
to command line glimpse.
Then I notice in the docs that .glimpse_filters has apparently replaced
that functionality.
Some details:
home of files being indexed:
/home/reader/public_html/
.glimpse_exclude:
/
.glimpse_include:
\.cgi
The above setup, from command line glimpse, indexes only files *.cgi
Apparently wglimpse isn't designed to use include/exclude files but
uses the .glimpse_filters file to play both roles.
So, taking some textbook examples directly from the documentation
(Format of .wgfilter-index)I changed the .glimpse_filters to read like
so:
.glimpse_filters:
Allow \.cgi$
Deny .*
This should work, according to docs, but does nothing whatever on my
setup.
Tried reversing the order with no change.
Trying to see if my syntax is wrong I tried just the deny part:
.glimpse_filters:
Deny .*
Still every last file is indexed.
In desperation I tried the old method with include/exclude and found
that it will work somewhat. At least I got all files excluded with:
.glimpse_exclude
/home
Just "/" by itself did nothing.
However there is no built in way to pass the glimpse flag -i to the
command so no include happens.
So what is the proper syntax for .glimpse_filters, apparently the
syntax given in the docs doesn't actually work (for me).