comparison roundup/configuration.py @ 6353:9d209d2b34ae

Add indexer_language to change stemmer for xapian FTS indexer Nagy Gabor asked how to enable the hungarian stemmer in roundup. This required editing indexer_xapian.py replacing hardcoded "english" term. This value is now exposed in the config file under [main] index_language. This only works for xapian currently.
author John Rouillard <rouilj@ieee.org>
date Sun, 28 Mar 2021 23:34:43 -0400
parents bd84f43e1d13
children b61de764c8cc
comparison
equal deleted inserted replaced
6352:d3a5d0d95869 6353:9d209d2b34ae
744 (Option, "indexer", "", 744 (Option, "indexer", "",
745 "Force Roundup to use a particular text indexer.\n" 745 "Force Roundup to use a particular text indexer.\n"
746 "If no indexer is supplied, the first available indexer\n" 746 "If no indexer is supplied, the first available indexer\n"
747 "will be used in the following order:\n" 747 "will be used in the following order:\n"
748 "Possible values: xapian, whoosh, native (internal)."), 748 "Possible values: xapian, whoosh, native (internal)."),
749 (Option, "indexer_language", "english",
750 "Used to determine what language should be used by the\n"
751 "indexer above. Currently only affects Xapian indexer. It\n"
752 "sets the language for the stemmer.\n"
753 "Possible values: must be a valid language for the indexer,\n"
754 "see indexer documentation for details."),
749 (WordListOption, "indexer_stopwords", "", 755 (WordListOption, "indexer_stopwords", "",
750 "Additional stop-words for the full-text indexer specific to\n" 756 "Additional stop-words for the full-text indexer specific to\n"
751 "your tracker. See the indexer source for the default list of\n" 757 "your tracker. See the indexer source for the default list of\n"
752 "stop-words (eg. A,AND,ARE,AS,AT,BE,BUT,BY, ...)"), 758 "stop-words (eg. A,AND,ARE,AS,AT,BE,BUT,BY, ...)"),
753 (OctalNumberOption, "umask", "0o002", 759 (OctalNumberOption, "umask", "0o002",

Roundup Issue Tracker: http://roundup-tracker.org/