diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2018-07-18 11:53:23 -0500 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2018-07-19 03:08:16 +0000 |
commit | 5d051e1de434490f46bff8bce82010a37a184976 (patch) | |
tree | 709fde945ff6a4d2bdf7269306e6adea2128e837 /script/public-inbox-init | |
parent | 90577102f4eabdf57b570457062de07398b72415 (diff) | |
download | public-inbox-5d051e1de434490f46bff8bce82010a37a184976.tar.gz |
About half the size of the Xapian search index turns out to be search positions. The search positions are only used in a very narrow set of queries. Make the search positions optional so people don't need to pay the cost of queries they will never make. This also makes public-inbox more approachable for light hacking as generating all of the indexes is time consuming. The way this is done is to add a method to SearchIdx called index_text that wraps the call of the term generator method index_text. The new index_text method takes care of calling both index_text and increase_termpos (the two functions that are responsible for position data). Then index_users, index_diff_inc, index_old_diff_fn, index_diff, index_body are made proper methods that calls the new index_text. Callers of the new index_text are slightly simplified as they don't need to call increase_termpos as well. Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Diffstat (limited to 'script/public-inbox-init')
0 files changed, 0 insertions, 0 deletions