]> mj.ucw.cz Git - libucw.git/blob - build/sherlock.cfg
c8fe6eeec8922939fad8b6bea52e393f6895565d
[libucw.git] / build / sherlock.cfg
1 # Configuration variables of Sherlock and their default values
2 # (c) 2005 Martin Mares <mj@ucw.cz>
3
4 # Version of the whole package
5 Set("SHERLOCK_VERSION" => "3.5");
6
7 # Installation directory for `make install'
8 Set("INSTALL_DIR" => "~/run-3.5");
9
10 # Compile everything with debug information and ASSERT's
11 UnSet("CONFIG_DEBUG");
12
13 # Enable aggressive optimizations depending on exact CPU type (don't use for portable packages)
14 UnSet("CONFIG_EXACT_CPU");
15
16 ### Standard modules available in all releases of Sherlock ###
17
18 # Gatherer (the gatherer library and some utilities) [FIXME: decide automatically?]
19 Set("CONFIG_GATHERER");
20
21 # The gatherer daemon (requires CONFIG_GATHERER)
22 Set("CONFIG_GATHERD");
23
24 # Indexer
25 Set("CONFIG_INDEXER");
26
27 # Search server
28 Set("CONFIG_SEARCH");
29
30 # Watson: The Monitoring System
31 UnSet("CONFIG_WATSON");
32
33 #ifndef CONFIG_FREE
34 ### These are available in the commercial version only: ###
35
36 # The Shepherd daemon (requires CONFIG_GATHERER and CONFIG_SHEPHERD_PROTOCOL)
37 UnSet("CONFIG_SHEPHERD");
38
39 # Support for Shepherd protocols everywhere (distributed indexing etc.)
40 UnSet("CONFIG_SHEPHERD_PROTOCOL");
41
42 # The reaper daemon, used by Shepherd to download the pages (requires CONFIG_GATHERER)
43 UnSet("CONFIG_REAPD");
44
45 # The multiplexer
46 UnSet("CONFIG_MUX");
47
48 #endif
49
50 ### Optional Modules & Features ###
51
52 # Support databases >4GB
53 Set("CONFIG_LARGE_DB");
54
55 # Number of sections we remember limits for
56 Set("SHERLOCK_NUM_SECTIONS" => 4);
57
58 # Use shared libraries
59 UnSet("CONFIG_SHARED");
60
61 # Gathering of PDF files
62 Set("CONFIG_PDF");
63
64 # Searching by last modification time
65 Set("CONFIG_LASTMOD");
66
67 # Searching by file type
68 Set("CONFIG_FILETYPE");
69
70 # Language processing (requires CONFIG_FILETYPE)
71 Set("CONFIG_LANG");
72
73 # Spelling checker
74 Set("CONFIG_SPELL");
75
76 # Enable indexing of context-dependent words and set maximum number
77 # of context slots (undef, 256 or 32768). Lower values save memory, higher time.
78 Set("CONFIG_MAX_CONTEXTS" => 256);
79
80 # Enable more than 16-bit word positions in references
81 Set("CONFIG_32BIT_REFERENCES");
82
83 # Debugging tools
84 UnSet("CONFIG_DEBUG_TOOLS");
85
86 # Search server: Enable EXPLAIN command (slows searching down slightly)
87 Set("CONFIG_EXPLAIN");
88
89 # If your system doesn't contain GNU libc 2.3 or newer, it's recommended to let Sherlock
90 # use its own regex library (a copy of the glibc one), because the default regex library
91 # is likely to be crappy.
92 Set("CONFIG_OWN_REGEX");
93
94 # Include custom builtin functions in filtering language
95 UnSet("CONFIG_CUSTOM_FILTER");
96
97 # Install libraries and their API includes
98 UnSet("CONFIG_INSTALL_API");
99
100 #ifndef CONFIG_FREE
101 # Number of refresh frequencies we allow
102 Set("SHERLOCK_NUM_FREQS" => 5);
103
104 # Gathering and indexing split to areas
105 UnSet("CONFIG_AREAS");
106
107 # Site compression
108 UnSet("CONFIG_SITES");
109
110 # Gathering of images
111 UnSet("CONFIG_IMAGES");
112
113 # Gathering of MS Word files
114 UnSet("CONFIG_MSWORD");
115
116 # Gathering of MS Excel files
117 UnSet("CONFIG_EXCEL");
118
119 # Extra stuff for Centrum
120 UnSet("CONFIG_CENTRUM");
121 UnSet("CONFIG_CENTRUM_CZ");
122 UnSet("CONFIG_CENTRUM_SK");
123 UnSet("CONFIG_CENTRUM_PL");
124
125 # Debugging version of Centrum installation (lower limits, trivial filters etc.)
126 UnSet("CONFIG_CENTRUM_DEBUG");
127
128 # Stemmer by UFAL and its dictionaries
129 UnSet("CONFIG_UFAL_STEMMER");
130 UnSet("CONFIG_UFAL_DICT_CS");
131 UnSet("CONFIG_UFAL_DICT_SK");
132
133 # Stemmer for Polish with its dictionary
134 UnSet("CONFIG_PL_STEMMER");
135
136 # Dynamic weights
137 UnSet("CONFIG_WEIGHTS");
138
139 #endif
140
141 ### These are internal settings which shouldn't be modified by custom configs ###
142
143 # Default configuration file
144 Set("DEFAULT_CONFIG" => "cf/sherlock");
145
146 # Configuration of parts of the UCW library
147 Set("CONFIG_UCW_PERL" => 1);
148 Set("CONFIG_UCW_SHELL_UTILS" => 1);
149
150 # Configuration of the language library
151 Set("CONFIG_LANG_DETECT" => 1);
152
153 # We always want to be able to use large files
154 Set("CONFIG_LFS" => 1);
155
156 # Maximum word length common for Sherlock and liblang, see comments in sherlock/index.h
157 Set("MAX_WORD_LEN" => 64);
158
159 # Return success
160 1;