set the storedoctext default to true
This commit is contained in:
parent
3a44e25e74
commit
2eaefa2b5d
@ -54,20 +54,16 @@
|
|||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
// Static, logically const, RclConfig members are initialized once from the
|
// Static, logically const, RclConfig members or module static
|
||||||
// first object build during process initialization.
|
// variables are initialized once from the first object build during
|
||||||
|
// process initialization.
|
||||||
|
|
||||||
// We default to a case- and diacritics-less index for now
|
// We default to a case- and diacritics-less index for now
|
||||||
bool o_index_stripchars = true;
|
bool o_index_stripchars = true;
|
||||||
|
// Default to storing the text contents for generating snippets. This
|
||||||
// Store document text in index. Allows extracting snippets from text
|
// is only an approximate 10% bigger index and produces nicer
|
||||||
// instead of building them from index position data. Has become
|
// snippets.
|
||||||
// necessary for versions of Xapian 1.6, which have dropped support
|
bool o_index_storedoctext = true;
|
||||||
// for the chert index format, and adopted a setup which renders our
|
|
||||||
// use of positions list unacceptably slow in cases. The text just
|
|
||||||
// translated from its original format to UTF-8 plain text, and is not
|
|
||||||
// stripped of upper-case, diacritics, or punctuation signs.
|
|
||||||
bool o_index_storedoctext = false;
|
|
||||||
|
|
||||||
bool o_uptodate_test_use_mtime = false;
|
bool o_uptodate_test_use_mtime = false;
|
||||||
|
|
||||||
|
|||||||
@ -446,10 +446,9 @@ extern bool o_index_stripchars;
|
|||||||
// instead of building them from index position data. Has become
|
// instead of building them from index position data. Has become
|
||||||
// necessary for versions of Xapian 1.6, which have dropped support
|
// necessary for versions of Xapian 1.6, which have dropped support
|
||||||
// for the chert index format, and adopted a setup which renders our
|
// for the chert index format, and adopted a setup which renders our
|
||||||
// use of positions list unacceptably slow in cases. 'raw' text here
|
// use of positions list unacceptably slow in cases. The text just
|
||||||
// means that the text is not stripped of upper-case, diacritics, or
|
// translated from its original format to UTF-8 plain text, and is not
|
||||||
// punctuation signs. It is still translated from its original format
|
// stripped of upper-case, diacritics, or punctuation signs. Defaults to true.
|
||||||
// to UTF-8 plain text.
|
|
||||||
extern bool o_index_storedoctext;
|
extern bool o_index_storedoctext;
|
||||||
|
|
||||||
// This global variable defines if we use mtime instead of ctime for
|
// This global variable defines if we use mtime instead of ctime for
|
||||||
|
|||||||
@ -254,7 +254,7 @@ indexStripChars = 1
|
|||||||
# will not be stored if the variable is not set or set to 0. For later
|
# will not be stored if the variable is not set or set to 0. For later
|
||||||
# Xapian versions, the variable does nothing, the text is always stored.
|
# Xapian versions, the variable does nothing, the text is always stored.
|
||||||
# </desc></var>
|
# </desc></var>
|
||||||
indexStoreDocText = 0
|
indexStoreDocText = 1
|
||||||
|
|
||||||
# <var name="nonumbers" type="bool"><brief>Decides if terms will be
|
# <var name="nonumbers" type="bool"><brief>Decides if terms will be
|
||||||
# generated for numbers.</brief><descr>For example "123", "1.5e6",
|
# generated for numbers.</brief><descr>For example "123", "1.5e6",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user