[honey] Fix compaction when merging databases
commitbb7b889aff6a157b5732d9f882b1398d5716f4c0
authorOlly Betts <olly@survex.com>
Wed, 16 Aug 2023 00:29:46 +0000 (16 12:29 +1200)
committerOlly Betts <olly@survex.com>
Wed, 16 Aug 2023 00:29:46 +0000 (16 12:29 +1200)
treed7b04523724ad2e01bd8e502dfd400d23bbd5348
parentf7cbbc7a1f2ac46a0ac0d8086bf1b4c8f3a83bb8
[honey] Fix compaction when merging databases

There were two bugs that affect this case:

We were zeroing the tf before using it to compute the wdf value for
terms which have a flat wdf.  This only matters when compaction is
merging databases as the computed wdf is only used then.

We were failing to correctly normalise the doclen chunk keys.
xapian-core/backends/honey/honey_compact.cc
xapian-core/tests/api_compact.cc