mirror of
https://github.com/quickwit-oss/tantivy.git
synced 2026-12-04 08:15:33 +00:00
`merge_columnar_with_codecs` takes a codec for each required column. `merge_columnar` keeps its signature and requires dictionary columns. A merged `Str` or `Bytes` column is plain if one of its inputs is plain, or if it is required with the plain codec. Dictionary encoded inputs are then converted, reading their values from their dictionary. A plain column is never converted to a dictionary column. Values are written with `PlainColumnSerializer`, in the merged row order: in input order for a stacked merge, row by row for a shuffled merge. The codec of each merged column is decided before opening the columns, so that the merged columns are serialized in the order of their key codes. The tantivy fast field merge passes the codec of each text and bytes fast field from the schema, so a plain fast field stays plain after a merge, even without any value.