|
a/src/internfile/mh_text.cpp |
|
b/src/internfile/mh_text.cpp |
|
... |
|
... |
57 |
return false;
|
57 |
return false;
|
58 |
}
|
58 |
}
|
59 |
|
59 |
|
60 |
// Max file size parameter: texts over this size are not indexed
|
60 |
// Max file size parameter: texts over this size are not indexed
|
61 |
int maxmbs = 20;
|
61 |
int maxmbs = 20;
|
62 |
RclConfig::getMainConfig()->getConfParam("textfilemaxmbs", &maxmbs);
|
62 |
m_config->getConfParam("textfilemaxmbs", &maxmbs);
|
63 |
|
63 |
|
64 |
if (maxmbs == -1 || st.st_size / MB <= maxmbs) {
|
64 |
if (maxmbs == -1 || st.st_size / MB <= maxmbs) {
|
65 |
// Text file page size: if set, we split text files into
|
65 |
// Text file page size: if set, we split text files into
|
66 |
// multiple documents
|
66 |
// multiple documents
|
67 |
int ps = 1000;
|
67 |
int ps = 1000;
|
68 |
RclConfig::getMainConfig()->getConfParam("textfilepagekbs", &ps);
|
68 |
m_config->getConfParam("textfilepagekbs", &ps);
|
69 |
if (ps != -1) {
|
69 |
if (ps != -1) {
|
70 |
ps *= KB;
|
70 |
ps *= KB;
|
71 |
m_paging = true;
|
71 |
m_paging = true;
|
72 |
}
|
72 |
}
|
73 |
m_pagesz = size_t(ps);
|
73 |
m_pagesz = size_t(ps);
|