|
a/src/common/rclconfig.cpp |
|
b/src/common/rclconfig.cpp |
|
... |
|
... |
57 |
// Static, logically const, RclConfig members are initialized once from the
|
57 |
// Static, logically const, RclConfig members are initialized once from the
|
58 |
// first object build during process initialization.
|
58 |
// first object build during process initialization.
|
59 |
|
59 |
|
60 |
// We default to a case- and diacritics-less index for now
|
60 |
// We default to a case- and diacritics-less index for now
|
61 |
bool o_index_stripchars = true;
|
61 |
bool o_index_stripchars = true;
|
|
|
62 |
|
|
|
63 |
// Store document text in index. Allows extracting snippets from text
|
|
|
64 |
// instead of building them from index position data. Has become
|
|
|
65 |
// necessary for versions of Xapian 1.6, which have dropped support
|
|
|
66 |
// for the chert index format, and adopted a setup which renders our
|
|
|
67 |
// use of positions list unacceptably slow in cases. 'raw' text here
|
|
|
68 |
// means that the text is not stripped of upper-case, diacritics, or
|
|
|
69 |
// punctuation signs. It is still translated from its original format
|
|
|
70 |
// to UTF-8 plain text.
|
|
|
71 |
bool o_index_storerawtext = false;
|
62 |
|
72 |
|
63 |
bool o_uptodate_test_use_mtime = false;
|
73 |
bool o_uptodate_test_use_mtime = false;
|
64 |
|
74 |
|
65 |
string RclConfig::o_localecharset;
|
75 |
string RclConfig::o_localecharset;
|
66 |
string RclConfig::o_origcwd;
|
76 |
string RclConfig::o_origcwd;
|
|
... |
|
... |
389 |
}
|
399 |
}
|
390 |
|
400 |
|
391 |
static int m_index_stripchars_init = 0;
|
401 |
static int m_index_stripchars_init = 0;
|
392 |
if (!m_index_stripchars_init) {
|
402 |
if (!m_index_stripchars_init) {
|
393 |
getConfParam("indexStripChars", &o_index_stripchars);
|
403 |
getConfParam("indexStripChars", &o_index_stripchars);
|
|
|
404 |
getConfParam("indexStoreRawText", &o_index_storerawtext);
|
394 |
getConfParam("testmodifusemtime", &o_uptodate_test_use_mtime);
|
405 |
getConfParam("testmodifusemtime", &o_uptodate_test_use_mtime);
|
395 |
m_index_stripchars_init = 1;
|
406 |
m_index_stripchars_init = 1;
|
396 |
}
|
407 |
}
|
397 |
|
408 |
|
398 |
if (getConfParam("cachedir", m_cachedir)) {
|
409 |
if (getConfParam("cachedir", m_cachedir)) {
|