|
Revision 861, 0.8 kB
(checked in by whmoseley, 7 years ago)
|
Updated the swish URL
|
- Property svn:eol-style set to
native
- Property svn:executable set to
*
- Property svn:keywords set to
Author Date Id Revision
|
| Line | |
|---|
| 1 |
# ----- Example 5 - Using FileRules ------- |
|---|
| 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 is a simple example of how to use FileRules |
|---|
| 11 |
# to limit what is indexed. |
|---|
| 12 |
# |
|---|
| 13 |
#--------------------------------------------------- |
|---|
| 14 |
|
|---|
| 15 |
# Include our site-wide configuration settings: |
|---|
| 16 |
|
|---|
| 17 |
IncludeConfigFile example4.config |
|---|
| 18 |
|
|---|
| 19 |
|
|---|
| 20 |
# Index the current directory |
|---|
| 21 |
|
|---|
| 22 |
IndexDir . |
|---|
| 23 |
|
|---|
| 24 |
|
|---|
| 25 |
# Now let's index only these example scripts |
|---|
| 26 |
# It would be easier to use IndexOnly, true, |
|---|
| 27 |
# but, this is just an example... |
|---|
| 28 |
|
|---|
| 29 |
# Don't index the stopwords directory |
|---|
| 30 |
FileRules pathname contains stopwords CVS |
|---|
| 31 |
|
|---|
| 32 |
# And don't index example6.spider or any index files |
|---|
| 33 |
FileRules filename contains .spider index. |
|---|
| 34 |
|
|---|
| 35 |
|
|---|
| 36 |
|
|---|
| 37 |
# end of example |
|---|
| 38 |
|
|---|