Skip to content

Conversation

@CascadingRadium
Copy link
Member

@CascadingRadium CascadingRadium commented Nov 12, 2025

  • Introduces fieldsOptions in the zap file segment to store indexing options for every field.
  • Decouples indexing logic from Bleve, allowing zapx to independently understand each field’s indexing configuration.
  • Enables the merger to identify which options were used to index a field without consulting the index mapping.
  • Adds metadata to the zap file format, making it a breaking change for version 17.
  • Requires [v17] Change FieldIndexingOptions type from int to uint64 bleve_index_api#76

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR introduces field-level indexing options storage in zap segments (version 17), decoupling indexing configuration from Bleve's index mapping and enabling the merger to independently understand field indexing requirements.

Key Changes:

  • Adds fieldsOptions map to store FieldIndexingOptions for each field in segment metadata
  • Extends file format to persist and load field indexing options alongside field definitions
  • Updates merge logic to collect and filter field options across segments

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
write.go Extended persistFieldsSection to write field indexing options as uvarints
segment.go Added fieldsOptions map to SegmentBase and implemented loading logic in loadField
new.go Added FieldsOptions to interim struct and populated it during field processing
merge.go Extended mergeFields to return field options and added filterFieldOptions to clean up deleted fields
build.go Initialized fieldsOptions map in InitSegmentBase

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Likith101
Likith101 previously approved these changes Nov 13, 2025
abhinavdangeti
abhinavdangeti previously approved these changes Nov 14, 2025
@CascadingRadium CascadingRadium changed the base branch from v17Stub to unstable-v17 November 19, 2025 06:08
@CascadingRadium CascadingRadium dismissed stale reviews from abhinavdangeti and Likith101 November 19, 2025 06:08

The base branch was changed.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 8 out of 8 changed files in this pull request and generated 4 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

CascadingRadium and others added 3 commits November 19, 2025 17:24
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 8 out of 8 changed files in this pull request and generated 5 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@CascadingRadium CascadingRadium merged commit 8d60fa9 into unstable-v17 Nov 21, 2025
6 checks passed
@CascadingRadium CascadingRadium deleted the fieldOptions branch November 21, 2025 20:24
CascadingRadium added a commit that referenced this pull request Dec 16, 2025
- Introduces fieldsOptions in the zap file segment to store indexing
options for every field.
- Decouples indexing logic from Bleve, allowing zapx to independently
understand each field’s indexing configuration.
- Enables the merger to identify which options were used to index a
field without consulting the index mapping.
- Adds metadata to the zap file format, making it a breaking change for
version 17.
- Requires blevesearch/bleve_index_api#76

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants