๐๐ฎ๐๐ฎ, ๐๐ป๐ฎ๐น๐๐๐ถ๐ฐ๐ & ๐๐. Modern alternative to Snowflake. Cost-effective and simple for massive-scale analytics. https://databend.com
We use the value corresponding to the Term obtained from the FST as the term_id to uniquely identify a Term. However, since our search supports multiple fields, this term_id may conflict between multiple fields, resulting in wrong results. This PR adds a new TermId structure, including the field_id and the term_ordinal field, to uniquely identify a Term and avoid conflicts.
fixes: #[Link the issue here]
Tests
[ ] Unit Test
[ ] Logic Test
[ ] Benchmark Test
[x] No Test - Explain why
Type of change
[x] Bug Fix (non-breaking change which fixes an issue)
[ ] New Feature (non-breaking change which adds functionality)
[ ] Breaking Change (fix or feature that could cause existing functionality not to work as expected)
I hereby agree to the terms of the CLA available at: https://docs.databend.com/dev/policies/cla/
Summary
We use the value corresponding to the
Term
obtained from theFST
as theterm_id
to uniquely identify aTerm
. However, since our search supports multiple fields, thisterm_id
may conflict between multiple fields, resulting in wrong results. This PR adds a newTermId
structure, including thefield_id
and theterm_ordinal
field, to uniquely identify aTerm
and avoid conflicts.Tests
Type of change
This change isโ