DeSR Dependency Parser |
00001 /* 00002 ** IXE C++ Library 00003 ** ixe/include/config.h 00004 ** ---------------------------------------------------------------------- 00005 ** Copyright (c) 2000 Ideare SpA. 00006 ** Copyright (c) 2000 Giuseppe Attardi (attardi@di.unipi.it). 00007 ** ---------------------------------------------------------------------- 00008 ** 00009 ** This file is part of DeSR. 00010 ** 00011 ** DeSR is free software; you can redistribute it and/or modify it 00012 ** under the terms of the GNU General Public License, version 3, 00013 ** as published by the Free Software Foundation. 00014 ** 00015 ** DeSR is distributed in the hope that it will be useful, 00016 ** but WITHOUT ANY WARRANTY; without even the implied warranty of 00017 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00018 ** GNU General Public License for more details. 00019 ** 00020 ** You should have received a copy of the GNU General Public License 00021 ** along with this program. If not, see <http://www.gnu.org/licenses/>. 00022 ** ---------------------------------------------------------------------- 00023 */ 00024 00025 #ifndef IXE_include_config_H 00026 #define IXE_include_config_H 00027 00028 #include "platform.h" 00029 00034 namespace IXE { 00035 00037 00038 int const WordMaxSize = 25; 00039 // The maximum length of words. 00040 int const WordMinSize = 2; 00041 // The minimum length of words. 00042 00044 00045 char const ConfigFileDefault[] = "ixe.conf"; 00046 // Default name of the configuration file. 00047 00048 char const TableNameDefault[] = "INDEX/docinfo"; 00049 // Default name of table containing indexes generated/searched; 00050 // can be overridden either in a config. file or on the command 00051 // line. 00052 00053 int const FilesGrowDefault = 100; 00054 // Default number of files to grow reserved space for when 00055 // incrementally indexing. 00056 00057 char const IndexExt[] = ".fti"; 00058 // Extension of index files. 00059 00060 char const PostingExt[] = ".pst"; 00061 // Extension of postings files. 00062 00063 char const TableExt[] = ".bdb"; 00064 // File extension for Berkeley DB tables. 00065 00066 char const ContentsExt[] = ".gz"; 00067 // File extension for zipped contents files. 00068 00069 int const ResultsMaxDefault = 10; 00070 // Default maximum number of search results; this can be 00071 // overridden either in a config. file or on the command line. 00072 00073 #ifdef _WIN32 00074 char const TempDirectoryDefault[] = "/windows/temp"; 00075 #else 00076 char const TempDirectoryDefault[] = "/tmp"; 00077 #endif 00078 // Default directory to use for temporary files during indexing. 00079 00080 int const WordPercentMaxDefault = 100; 00081 // Default maximum percentage of files a word may occur in before 00082 // it is discarded as being too frequent. 00083 00084 int const Word_Threshold = 60000; 00085 // The word count past which partial indexes are generated and 00086 // merged 00087 00088 int const max_columns = 64; 00089 // Maximum number of columns in a table. 00090 00091 int const max_prefix_lists = 5000; 00092 // Maximum number of terms considered in prefix search. 00093 00094 int const Max_CursorAll_Hits = 20; 00095 // Maximum number of proximity hits considered by QueryCursorAll 00096 00097 int const Postings_Segment_Size = 1024; 00098 // Size of postings segment which is scanned sequentially 00099 // This parameter must be less than the following 00100 00101 int const Min_Postings_Table = 4096; 00102 // Minimum number of postings required for the table 00103 00104 } // namespace IXE 00105 00106 #endif /* IXE_include_config_H */