config.h
上传用户:qin5330
上传日期:2007-01-05
资源大小:114k
文件大小:9k
- /*
- ** Copyright (C) 1995, 1996, 1997, 1998 Hewlett-Packard Company
- ** Originally by Kevin Hughes, kev@kevcom.com, 3/11/94
- **
- ** This program and library is free software; you can redistribute it and/or
- ** modify it under the terms of the GNU (Library) General Public License
- ** as published by the Free Software Foundation; either version 2
- ** of the License, or any later version.
- **
- ** This program is distributed in the hope that it will be useful,
- ** but WITHOUT ANY WARRANTY; without even the implied warranty of
- ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- ** GNU (Library) General Public License for more details.
- **
- ** You should have received a copy of the GNU (Library) General Public License
- ** along with this program; if not, write to the Free Software
- ** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
- **--------------------------------------------------------------------------
- ** Config file edited by Roy Tennant 2/20/96
- ** Config file edited by Giulia Hill 2/27/97 to increase lenght of
- ** words that are indexed
- ** Added IGNORELASTCHAR
- ** G. Hill 3/12/97 ghill@library.berkeley.edu
- **
- ** Added OKNOMETA to allow no failing in case the META name is
- ** not listed in the config.h
- ** G. Hill 4/15/97 ghill@library.berkeley.edu
- **
- ** Added IGNOREFIRSTCHAR
- ** G.Hill 10/16/97 ghill@library.berkeley.edu
- **-----------------------------------------------------------------------
- ** The following are user-definable options that you can change
- ** to fine-tune SWISH's default options.
- */
- #define ALLOW_HTTP_INDEXING_DATA_SOURCE 1
- #define ALLOW_FILESYSTEM_INDEXING_DATA_SOURCE 1
- /* These symbols allow compile-time elimination of indexing
- ** data sources. Any Data Source that is allowed by these
- ** symbols can be selected for indexing from the command line.
- ** Comment out any options you do not want to support, but
- ** be sure to leave at least one option.
- */
- #define INDEXPERMS 0644
- /* After SWISH generates an index file, it changes the permissions
- ** of the file to this mode. Change to the mode you like
- ** (note that it must be an octal number). If you don't want
- ** permissions to be changed for you, comment out this line.
- */
- #define PLIMIT 99
- #define FLIMIT 10000
- /* SWISH uses these parameters to automatically mark words as
- ** being too common while indexing. For instance, if I defined PLIMIT
- ** as 80 and FLIMIT as 256, SWISH would define a common word as
- ** a word that occurs in over 80% of all indexed files and over
- ** 256 files. Making these numbers lower will most likely make your
- ** index files smaller. Making PLIMIT and FLIMIT small will also
- ** ensure that searching consumes only so much CPU resources.
- */
- #define VERBOSE 3
- /* You can define VERBOSE to be a number from 0 to 4. 0 is totally
- ** silent operation; 4 is very verbose.
- */
- #define MAXHITS 5000
- /* MAXHITS is the maximum number of results to return from a search.
- */
- #define DEFAULT_RULE AND_RULE
- /* If a list of search words is specified without booleans,
- ** SWISH will assume they are connected by a default rule.
- ** This can be AND_RULE or OR_RULE.
- */
- #define TITLETOPLINES 12
- /* This is how many lines deep SWISH will look into an HTML file to
- ** attempt to find a <TITLE> tag.
- */
- #define EMPHASIZECOMMENTS 0
- /* Normally, words within HTML comments are not assigned a higher
- ** relevance rank. If you're including keywords in comments
- ** define this as 1 so matching results will rise to the top
- ** of search results.
- */
- #define MINWORDLIMIT 1
- /* This is the minimum length of a word. Anything shorter will not
- ** be indexed.
- */
- #define MAXWORDLIMIT 40
- /* This is the maximum length of a word. Anything longer will not
- ** be indexed.
- */
- #define ASCIIENTITIES 1
- /* If defined as 1, all entities in search words and indexed
- ** words will be converted to an ASCII equivalent. For instance,
- ** with this feature you can index the word "resumé" or
- ** "resumé" and it will be indexed as the word "resume".
- ** If defined as 0, only numerical entities will be converted
- ** to named entities, if they exist.
- */
- #define IGNOREALLV 0
- #define IGNOREALLC 0
- #define IGNOREALLN 0
- /* If IGNOREALLV is 1, words containing all vowels won't be indexed.
- ** If IGNOREALLC is 1, words containing all consonants won't be indexed.
- ** If IGNOREALLN is 1, words containing all digits won't be indexed.
- ** Define as 0 to allow words with consistent characters.
- ** Vowels are defined as "aeiou", digits are "0123456789".
- */
- #define IGNOREROWV 60
- #define IGNOREROWC 60
- #define IGNOREROWN 60
- /* IGNOREROWV is the maximum number of consecutive vowels a word can have.
- ** IGNOREROWC is the maximum number of consecutive consonants a word can have.
- ** IGNOREROWN is the maximum number of consecutive digits a word can have.
- ** Vowels are defined as "aeiou", digits are "0123456789".
- */
- #define IGNORESAME 100
- /* IGNORESAME is the maximum times a character can repeat in a word.
- */
- #define WORDCHARS "abcdefghijklmnopqrstuvwxyz懒旅呐魄壬仕掏蜗醒矣哉重寠仝圮轃捺徕沅彐玷殛腱眍镳耱篝貊鴾氝