mirror of
https://github.com/qdrant/qdrant.git
synced 2026-09-28 17:07:49 -05:00
* Share the text index post-tokenization indexing path Extract `MutableInvertedIndex::index_str_tokens` so the write path and read-only live reload cannot drift apart, and collapse the two identical on-disk file listings into one. The extracted helper gates the ordered document on `point_to_doc.is_some()` rather than re-reading `config.phrase_matching`. Equivalent, since `point_to_doc` is built from that flag, and it skips a needless clone if the two ever disagree. No behavior change. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> * Cover the text index live reload path `ReadOnlyAppendableFullTextIndex::live_reload` had no direct test: it replays stored documents through the same post-tokenization indexing as the write path, but nothing pinned that down. Asserts the incremental reload lands on the same state as a fresh `open_appendable` after a writer deletes one point and appends two, over both `phrase_matching` values. The phrase leg matters because adjacency depends on the ordered document being indexed, not just the token set. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> * Apply suggestion from @timvisee Co-authored-by: Tim Visée <tim+github@visee.me> --------- Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com> Co-authored-by: Tim Visée <tim+github@visee.me>