Merged
Conversation
There was a problem hiding this comment.
Pull Request Overview
This PR introduces support for nested document relationships by adding a NestedSegment interface that extends the existing Segment interface with hierarchical functionality.
- Adds
NestedSegmentinterface withAncestorsandDescendantsmethods - Provides optional backward compatibility for segments that don't support nested documents
- Enables retrieval of parent-child document relationships within segments
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
This was referenced Sep 13, 2025
5541951 to
ebd2b3b
Compare
903b0a2 to
63c885d
Compare
Likith101
previously approved these changes
Jan 9, 2026
* 049020a Rahul Rampure | [v17] Change FieldIndexingOptions type from int to uint64 * 09f96c8 Rahul Rampure | [v17] MB-27666: Nested Fields
abhinavdangeti
approved these changes
Jan 9, 2026
CascadingRadium
added a commit
to blevesearch/zapx
that referenced
this pull request
Jan 15, 2026
- Zapx now handles nested documents by creating and storing an edge list indicating document relationships. - Exposed new APIs: - `Ancestors` that allows the caller to fetch the ancestry chain of the requested document. - `CountRoot` which returns the number of root documents in the segment (excluding nested documents). - `AddNestedDocuments` which updates the deleted bitmap from the segment snapshot to contain nested documents as well. - The total number of documents in the segment will include the nested documents as well. Requires: - blevesearch/bleve_index_api#70 - blevesearch/scorch_segment_api#63 --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: Likith B <likith.b@couchbase.com> Co-authored-by: Abhi Dangeti <abhinav@couchbase.com>
abhinavdangeti
added a commit
to blevesearch/bleve
that referenced
this pull request
Jan 15, 2026
Add support for nested fields in indexing and querying - Parse and index nested JSON objects - Enable queries on nested fields - Preserve hierarchical relationships in index Requires: - blevesearch/bleve_index_api#70 - https://github.com/blevesearch/bleve_index_api/releases/tag/v1.3.0 - blevesearch/scorch_segment_api#63 - https://github.com/blevesearch/scorch_segment_api/releases/tag/v2.4.0 - blevesearch/zapx#339, blevesearch/zapx#365 - https://github.com/blevesearch/zapx/releases/tag/v17.0.0 - https://github.com/blevesearch/zapx/releases/tag/v16.3.0 Resolves: - #15 - #637 - #1297 --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: Abhinav Dangeti <abhinav@couchbase.com>
CascadingRadium
added a commit
to blevesearch/bleve
that referenced
this pull request
Jan 20, 2026
Add support for nested fields in indexing and querying - Parse and index nested JSON objects - Enable queries on nested fields - Preserve hierarchical relationships in index Requires: - blevesearch/bleve_index_api#70 - https://github.com/blevesearch/bleve_index_api/releases/tag/v1.3.0 - blevesearch/scorch_segment_api#63 - https://github.com/blevesearch/scorch_segment_api/releases/tag/v2.4.0 - blevesearch/zapx#339, blevesearch/zapx#365 - https://github.com/blevesearch/zapx/releases/tag/v17.0.0 - https://github.com/blevesearch/zapx/releases/tag/v16.3.0 Resolves: - #15 - #637 - #1297 --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: Abhinav Dangeti <abhinav@couchbase.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
NestedSegmentinterface to manage hierarchical document relationships.