Repository navigation
feat: wire up read only field indexes - #9224
Conversation
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
📝 WalkthroughWalkthroughAdds ReadOnlyFieldIndex::open that maps FullPayloadIndexType.storage_type to appendable vs immutable read modes and dispatches per PayloadIndexType to per-index read-only open functions (map, numeric, geo, full-text, bool, null), converting payload schema to TextIndexParams for full-text and forwarding total_point_count for null. Introduces a lifecycle submodule, exposes index-directory helpers as pub(crate), implements Debug for ReadOnlyFieldIndex, and adds lifecycle/introspection methods (files, immutable_files, ram_usage_bytes, is_on_disk, populate, clear_cache, get_full_index_type) as match-based skeletons; many arms remain todo!. Estimated code review effort🎯 4 (Complex) | ⏱️ ~45 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Warning Review ran into problems🔥 ProblemsGit: Failed to clone repository. Please run the Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
e0912f1 to
38549c9
Compare
b7be54c to
4ce96c0
Compare
6c65256 to
069bd45
Compare
Merge ReadOnlyFieldIndex::open_gridstore/open_mmap into a single `open` that picks the appendable vs immutable path from the stored FullPayloadIndexType::storage_type. The choice is modeled as a ReadMode (Appendable/Immutable) rather than a concrete backend, since the read-only stack is generic over UniversalRead and mmap is now just one implementation of it. Also remove the unsupported RocksDb variant from payload_config's StorageType and its now-dead match arms. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
* feat: wire up read only field indexes * feat: add missing indexes * feat: add try_from impl for TextIndexParams * refactor: unify read-only field index open and drop RocksDB storage Merge ReadOnlyFieldIndex::open_gridstore/open_mmap into a single `open` that picks the appendable vs immutable path from the stored FullPayloadIndexType::storage_type. The choice is modeled as a ReadMode (Appendable/Immutable) rather than a concrete backend, since the read-only stack is generic over UniversalRead and mmap is now just one implementation of it. Also remove the unsupported RocksDb variant from payload_config's StorageType and its now-dead match arms. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> * fix: linter * fix: linter --------- Co-authored-by: generall <[email protected]> Co-authored-by: Claude Opus 4.8 (1M context) <[email protected]>
All Submissions:
devbranch (notmaster) and my branch was created fromdev.New Feature Submissions:
cargo +nightly fmt --allcommand prior to submission?cargo clippy --workspace --all-featurescommand?Changes to Core Features: