| 1 |
# ----- Example 1 - limit by extension ------------- |
|---|
| 2 |
# |
|---|
| 3 |
# Please see the swish-e documentation for |
|---|
| 4 |
# information on configuration directives. |
|---|
| 5 |
# Documentation is included with the swish-e |
|---|
| 6 |
# distribution, and also can be found on-line |
|---|
| 7 |
# at http://swish-e.org |
|---|
| 8 |
# |
|---|
| 9 |
# |
|---|
| 10 |
# This example demonstrates how to limit |
|---|
| 11 |
# indexing to just .htm and .html files. |
|---|
| 12 |
# |
|---|
| 13 |
# This particular example (by Greg Ford) is for SwishCtl |
|---|
| 14 |
#--------------------------------------------------- |
|---|
| 15 |
|
|---|
| 16 |
|
|---|
| 17 |
# By default, swish creates an index file in the current directory |
|---|
| 18 |
# called "index.swish-e" (and swish uses this name by default when |
|---|
| 19 |
# searching. This is convenient, but not always desired. |
|---|
| 20 |
|
|---|
| 21 |
IndexFile docs.idx |
|---|
| 22 |
|
|---|
| 23 |
# don't index the search page |
|---|
| 24 |
FileRules filename is queryframe\.htm |
|---|
| 25 |
|
|---|
| 26 |
# Although you can specify which files or directories to |
|---|
| 27 |
# index on the command line with -i, it's common to specify |
|---|
| 28 |
# it here. Note that these are relative to the current directory. |
|---|
| 29 |
|
|---|
| 30 |
# Index current directory and |
|---|
| 31 |
# all sub-directories |
|---|
| 32 |
# index only files ending in .html and .htm. |
|---|
| 33 |
|
|---|
| 34 |
IndexDir . |
|---|
| 35 |
IndexOnly .htm .html |
|---|
| 36 |
|
|---|
| 37 |
# |
|---|
| 38 |
# a WordCharacters setting for indexing identifiers of form 999/99 |
|---|
| 39 |
#WordCharacters abcdefghijklmnopqrstuvwxyz0123456789/ |
|---|
| 40 |
|
|---|
| 41 |
# If you wish to follow symbolic links use the following. |
|---|
| 42 |
# Note that the default is "no". I you are indexing many |
|---|
| 43 |
# files, and you do not have any symbolic links, you may |
|---|
| 44 |
# still want to set this to "yes". This will avoid an extra |
|---|
| 45 |
# lstat system call for every file while indexing. |
|---|
| 46 |
|
|---|
| 47 |
#FollowSymLinks yes |
|---|
| 48 |
|
|---|
| 49 |
#FuzzyIndexingMode Stemming |
|---|
| 50 |
#UseSoundex yes |
|---|
| 51 |
|
|---|
| 52 |
PropertyNames description |
|---|
| 53 |
PropertyNamesMaxLength 1000 description |
|---|
| 54 |
|
|---|
| 55 |
# |
|---|
| 56 |
#PropertyNames decisionid |
|---|
| 57 |
#PropertyNamesMaxLength 8 decisionid |
|---|
| 58 |
# |
|---|
| 59 |
#PropertyNames year |
|---|
| 60 |
#PropertyNamesMaxLength 4 year |
|---|
| 61 |
|
|---|
| 62 |
#PropertyNameAlias swishdescription description |
|---|
| 63 |
|
|---|
| 64 |
#MetaNames description keywords year |
|---|
| 65 |
MetaNames description keywords |
|---|
| 66 |
|
|---|
| 67 |
#StoreDescription HTML <description> |
|---|
| 68 |
#StoreDescription HTML2 <description> |
|---|
| 69 |
|
|---|
| 70 |
# end of example |
|---|
| 71 |
|
|---|