# Configuration variables of Sherlock and their default values # (c) 2005 Martin Mares # Version of the whole package Set("SHERLOCK_VERSION" => "3.5"); # Installation directory for `make install' Set("INSTALL_DIR" => "~/run-3.5"); ### Standard modules available in all releases of Sherlock ### # Gatherer (the gatherer library and some utilities) [FIXME: decide automatically?] Set("CONFIG_GATHERER"); # The gatherer daemon (requires CONFIG_GATHERER) UnSet("CONFIG_GATHERD"); # Indexer Set("CONFIG_INDEXER"); # Search server Set("CONFIG_SEARCH"); # Watson: The Monitoring System UnSet("CONFIG_WATSON"); #ifndef CONFIG_FREE ### These are available in the commercial version only: ### # The Shepherd daemon (requires CONFIG_GATHERER and CONFIG_SHEPHERD_PROTOCOL) UnSet("CONFIG_SHEPHERD"); # Support for Shepherd protocols everywhere (distributed indexing etc.) UnSet("CONFIG_SHEPHERD_PROTOCOL"); # The reaper daemon, used by Shepherd to download the pages (requires CONFIG_GATHERER) UnSet("CONFIG_REAPD"); # The multiplexer UnSet("CONFIG_MUX"); #endif ### Optional Modules & Features ### # Number of sections we remember limits for Set("SHERLOCK_NUM_SECTIONS" => 4); # Use shared libraries UnSet("CONFIG_SHARED"); # Gathering of PDF files Set("CONFIG_PDF"); # Searching by last modification time Set("CONFIG_LASTMOD"); # Searching by file type Set("CONFIG_FILETYPE"); # Language processing (requires CONFIG_FILETYPE) Set("CONFIG_LANG"); # Spelling checker Set("CONFIG_SPELL"); # Enable indexing of context-dependent words and set maximum number # of context slots (undef, 256 or 32768). Lower values save memory, higher time. Set("CONFIG_MAX_CONTEXTS" => 256); # Enable more than 16-bit word positions in references Set("CONFIG_32BIT_REFERENCES"); # Debugging tools Set("CONFIG_DEBUG"); # Search server: Enable EXPLAIN command (slows searching down slightly) Set("CONFIG_EXPLAIN"); # If your system doesn't contain GNU libc 2.3 or newer, it's recommended to let Sherlock # use its own regex library (a copy of the glibc one), because the default regex library # is likely to be crappy. Set("CONFIG_OWN_REGEX"); # Include custom builtin functions in filtering language UnSet("CONFIG_CUSTOM_FILTER"); # Install libraries and their API includes UnSet("CONFIG_INSTALL_API"); #ifndef CONFIG_FREE # Number of refresh frequencies we allow Set("SHERLOCK_NUM_FREQS" => 5); # Gathering and indexing split to areas UnSet("CONFIG_AREAS"); # Site compression UnSet("CONFIG_SITES"); # Gathering of images UnSet("CONFIG_IMAGES"); # Gathering of MS Word files UnSet("CONFIG_MSWORD"); # Gathering of MS Excel files UnSet("CONFIG_EXCEL"); # Extra stuff for Centrum UnSet("CONFIG_CENTRUM"); # Configuration for Morfeo UnSet("CONFIG_MORFEO"); # Stemmer by UFAL and its dictionaries UnSet("CONFIG_UFAL_STEMMER"); UnSet("CONFIG_UFAL_DICT_CS"); UnSet("CONFIG_UFAL_DICT_SK"); # Stemmer for Polish with its dictionary UnSet("CONFIG_PL_STEMMER"); # Dynamic weights Set("CONFIG_WEIGHTS"); #endif ### These are internal settings which shouldn't be modified by custom configs ### # Default configuration file Set("DEFAULT_CONFIG" => "cf/sherlock"); # Configuration of parts of the UCW library Set("CONFIG_UCW_PERL" => 1); Set("CONFIG_SHELL_UTILS" => 1); # Configuration of the language library Set("CONFIG_LANG_DETECT" => 1); # We always want to be able to use large files Set("CONFIG_LFS" => 1); # Maximum word length common for Sherlock and liblang, see comments in sherlock/index.h Set("MAX_WORD_LEN" => 64); # Return success 1;