[an error occurred while processing this directive]
 |
How can I control which files are included in my index?
|
There are two ways to control which files are included in an index.
- Isolate the files you want to be included in the index into their own
sub-directory, and then create a Glimpse index for that sub-directory. That index will only include the files in that directory (but note that it will also
include any files in any sub-directories in that directory).
- Use the Include and Exclude boxes on the create index form to specify specific files, directories, and/or groups of files and/or directories to be included or excluded from the index. Remember to list the file relative to the directory being indexed. For example, if
you're creating an index of your www tree, and you want to exclude a file named
"private.html" which is in a sub-directory called "mydir", then you'd refer
to the file as "mydir/private.shtml" (and not "www/mydir/private.shtml"; the "www" is implied since that's the directory being indexed).
- If you want to exclude a given file from the directory, list it in the Exclude box on the create index form.
- If you want to exclude a whole directory, simply list the directory name
in the Exclude box.
- If you want to exclude a set of files, you can use the "#" wild card (or any regular expression). For example, to exclude all files ending with .txt from the index, list
"#.txt" in the exclude box (note: this will exclude all files ending with
.txt in all directories from the index; to only exclude them from a
specific directory, use dir/#.txt. To exclude them only in the top-level
directory, use the "." which stands for current directory: ./#.txt).
- If you want to include all but a few files, put an asterisk (*) in the
Exclude box (which means exclude all), check the checkbox labeled "Include
overrides Exclude", and list the files you wish to include in the Include box
(like in the exclude box, you can use wildcards in the Include box as well).
[an error occurred while processing this directive]