mirror of
https://github.com/quickwit-oss/tantivy.git
synced 2026-02-27 02:00:37 +00:00
For the moment, this only allows for postings codec. Also, on the write side, it does not include positions yet. Implementation details: On the write side, we use static typing. A lot of types are now generics over the codec, but with a default codec type that makes it so, we should not break client projects too much. On the read side, we rely on a ObjectSafeCodec contraption to avoid the proliferation of generics. That object's point is to make sure we can build TermScorer with a concrete codec specific type before reboxing it. (same thing for PhraseScorer).