--- a/src/common/rclconfig.cpp
+++ b/src/common/rclconfig.cpp
@@ -59,6 +59,16 @@
// We default to a case- and diacritics-less index for now
bool o_index_stripchars = true;
+
+// Store document text in index. Allows extracting snippets from text
+// instead of building them from index position data. Has become
+// necessary for versions of Xapian 1.6, which have dropped support
+// for the chert index format, and adopted a setup which renders our
+// use of positions list unacceptably slow in cases. 'raw' text here
+// means that the text is not stripped of upper-case, diacritics, or
+// punctuation signs. It is still translated from its original format
+// to UTF-8 plain text.
+bool o_index_storerawtext = false;
bool o_uptodate_test_use_mtime = false;
@@ -391,6 +401,7 @@
static int m_index_stripchars_init = 0;
if (!m_index_stripchars_init) {
getConfParam("indexStripChars", &o_index_stripchars);
+ getConfParam("indexStoreRawText", &o_index_storerawtext);
getConfParam("testmodifusemtime", &o_uptodate_test_use_mtime);
m_index_stripchars_init = 1;
}