set defaults usedesktoprefs, maxtext 20mb pagesz 1000k webcache 40m

This commit is contained in:
dockes 2009-11-28 08:14:05 +00:00
parent c469dd5595
commit a029de8be9
4 changed files with 5 additions and 5 deletions

View File

@ -207,7 +207,7 @@ BeagleQueueIndexer::BeagleQueueIndexer(RclConfig *cnf, Rcl::Db *db,
if (ccdir.at(0) != '/') if (ccdir.at(0) != '/')
ccdir = path_cat(m_config->getConfDir(), ccdir); ccdir = path_cat(m_config->getConfDir(), ccdir);
int maxmbs = 20; int maxmbs = 40;
m_config->getConfParam("webcachemaxmbs", &maxmbs); m_config->getConfParam("webcachemaxmbs", &maxmbs);
m_cache = new CirCache(ccdir); m_cache = new CirCache(ccdir);
m_cache->create(off_t(maxmbs)*1000*1024, CirCache::CC_CRUNIQUE); m_cache->create(off_t(maxmbs)*1000*1024, CirCache::CC_CRUNIQUE);

View File

@ -55,13 +55,13 @@ bool MimeHandlerText::set_document_file(const string &fn)
} }
// Max file size parameter: texts over this size are not indexed // Max file size parameter: texts over this size are not indexed
int maxmbs = -1; int maxmbs = 20;
RclConfig::getMainConfig()->getConfParam("textfilemaxmbs", &maxmbs); RclConfig::getMainConfig()->getConfParam("textfilemaxmbs", &maxmbs);
if (maxmbs == -1 || st.st_size / MB <= maxmbs) { if (maxmbs == -1 || st.st_size / MB <= maxmbs) {
// Text file page size: if set, we split text files into // Text file page size: if set, we split text files into
// multiple documents // multiple documents
int ps = -1; int ps = 1000;
RclConfig::getMainConfig()->getConfParam("textfilepagekbs", &ps); RclConfig::getMainConfig()->getConfParam("textfilepagekbs", &ps);
if (ps != -1) { if (ps != -1) {
ps *= KB; ps *= KB;

View File

@ -131,7 +131,7 @@ void rwSettings(bool writing)
SETTING_RW(prefs.queryStemLang, "/Recoll/prefs/query/stemLang", , SETTING_RW(prefs.queryStemLang, "/Recoll/prefs/query/stemLang", ,
"english"); "english");
SETTING_RW(prefs.useDesktopOpen, SETTING_RW(prefs.useDesktopOpen,
"/Recoll/prefs/useDesktopOpen", Bool, false); "/Recoll/prefs/useDesktopOpen", Bool, true);
SETTING_RW(prefs.keepSort, SETTING_RW(prefs.keepSort,
"/Recoll/prefs/keepSort", Bool, false); "/Recoll/prefs/keepSort", Bool, false);
SETTING_RW(prefs.sortActive, SETTING_RW(prefs.sortActive,