mirror of
https://github.com/quickwit-oss/tantivy.git
synced 2026-05-31 23:50:41 +00:00
When a document has the exact registered facet path (not a child), compute_collapse_mapping_one maps it to a sentinel (u64::MAX, 0). Without filtering, harvest() passes u64::MAX to ord_to_term which resolves to the last dictionary entry, producing a spurious facet from an unrelated branch. Skip entries where facet_ord == u64::MAX in harvest(). Closes #2494 Signed-off-by: majiayu000 <1835304752@qq.com>